Commit Graph

3125 Commits

Author SHA1 Message Date
Luke Usher 202193fa2b Merge remote-tracking branch 'upstream/master' into lle 2017-07-30 21:51:50 +01:00
Melissa Goad 413fbfcc05 NV2A fixes (#555)
* Fix a bunch of break-less switch cases

* Fix an egregious mistake, also copy a lil bit of code from PatrickVl's branch in preparation for something GREAT :D

* Ooops

* Ooops
2017-07-30 11:53:10 +01:00
Melissa Goad fc575e5794 Fix a bunch of break-less switch cases (#554) 2017-07-30 10:13:47 +01:00
rexcaptain501 c4791a2539 Update README.md (#544)
* Update README.md

README.md cleanup.

* Couple of changes

Small Bug Reports rewrite.
2017-07-30 10:13:10 +01:00
Luke Usher fdd58b72b2 Minor Change: g_SymbolAddresses is now an ordered map.
In real terms, this doesn't really make any difference, however, when analysing HLE Cache files, the functions are in alphabetical order and easier to follow.
2017-07-30 08:27:23 +01:00
ergo720 d65bfa985e Merge branch 'master' into master 2017-07-29 20:28:27 +00:00
ergo720 76a5deb44a Fix incorrect debug folder registry key 2017-07-29 20:46:28 +00:00
Luke Usher a39f95053e Set default render/texture states for all supported types.
This data was taken from a table accessed by CreateDevice in the XDK.
2017-07-29 20:09:57 +01:00
Luke Usher e3a19a2a3d Upgrade to DirectX 8.1.
If we're stuck on an older version of DirectX, we might as well use the latest revision ;)
2017-07-29 20:05:54 +01:00
Luke Usher a5252ec5e7 The 4361 version of SetRenderState_PSTextureModes actually existed back in 4134 2017-07-29 19:25:06 +01:00
Luke Usher 05f885778c Fix most incorrect Direct3D return types.
Testing so far doesn't seem to have made any difference to execution at all, but this had potential to cause issues, it's good to get it right!
2017-07-28 22:23:24 +01:00
ergo720 d44c393065 Revert commit fix for the issue #515 (#542) 2017-07-28 20:59:50 +01:00
ergo720 e9577833b7 Revert commit fix for the issue #515 2017-07-28 19:38:27 +00:00
PatrickvL e10971609a Merge pull request #540 from ergo720/master
Fix issue #515
2017-07-28 17:35:25 +02:00
ergo720 908356ec4f Better fix for the issue #515 2017-07-28 14:05:52 +00:00
ergo720 b867599fdd Fix for the issue #515 2017-07-28 12:50:42 +00:00
PatrickvL 2cef285bc1 Dsound hle fix (#539)
* Turned g_bEmuException into a thread_local variable (this fixes issue #135)

* Added DirectSoundUseFullHRTF to XTL namespace

This is a requirement for functions to be patched!
(Spotted this by chance while looking at the exports of our Cxbx.exe
using CFF Explorer VIII)
2017-07-28 13:12:22 +01:00
PatrickvL 57fd8f5c7a Turned g_bEmuException into a thread_local variable (this fixes issue #135) (#538) 2017-07-28 11:10:17 +01:00
PatrickvL aa0c67187d DSound logging improvements (#537)
* Marked OUT arguments as such
* DSound: Replaced all function logging via DbgPrintf calls with LOG macro's
* DSound: Added LOG_UNIMPLEMENTED_DSOUND where appropriate
* DSound: Added missing LOG_FUNC
* DSound: indented some function headers
* DSound: Small refactoring of AddRef/Release, and added a few TODO's.
* DSound: Intenting and last few fixes
2017-07-28 10:07:52 +01:00
Luke Usher 5e73acde07 Backup and restore original FillMode rather than overwrite with SOLID when Wireframe mode is disabled.
I haven't noticed any changes relating to this, but it was possible that a title could set D3DRS_FILLMODE to Wireframe and get overwritten by Cxbx-Reloaded.
Now we keep the original value
2017-07-28 08:24:30 +01:00
Ben ca1066fafc Update README.md (#536)
Added compatibility link
2017-07-28 06:18:12 +01:00
PatrickvL a8033fee8b Fixed duplicate use of XBEIMAGE_MEDIA_TYPE_DVD_5_RW (9 was intended) (#534) 2017-07-27 14:50:31 +01:00
Luke Usher 3ee227bf74 Merge pull request #529 from LukeUsher/various-tweaks-and-fixes
Various Bug Fixes and Improvements
2017-07-26 22:18:05 +01:00
Luke Usher ce96ef0083 Restore an intentional Sleep(); 2017-07-26 22:15:34 +01:00
Luke Usher 68cd19547e Fix a regression in ZSNES 2017-07-26 22:14:02 +01:00
Luke Usher aed96f115e Fix an issue with CMcpxBuffer::Play being undetected after commit #4f019d9440 2017-07-26 21:40:29 +01:00
Luke Usher aee4d7d487 Update CONTRIBUTORS 2017-07-24 08:15:55 +01:00
Luke Usher 3ca1a35479 Merge pull request #514 from RadWolfie/HLE-Audio-Improvement
HLE Audio Improvement
2017-07-23 18:19:13 +01:00
Luke Usher eb7b7e5ece Replace some Sleep() with SwitchToThread
This prevents Windows giving up the Cxbx processes timeslice, allowing other xbox threads to run.

This fixes the audio stuttering in JSRF!
2017-07-23 18:13:20 +01:00
RadWolfie 577010fc59 Update CONTRIBUTORS
Audio improvements by RadWolfie and blueshogun96.
2017-07-23 12:12:41 -05:00
RadWolfie b222d82376 Update XADPCM.h
Removed author since it is not part of author's work.
2017-07-23 06:17:27 -05:00
Luke Usher b46d4ce6a8 Merge branch 'HLE-Audio-Improvement' into various-tweaks-and-fixes 2017-07-23 08:59:06 +01:00
RadWolfie 85ff52e502 Disable Legacy Audio Hack Option
Currently legacy audio hack option is not implemented, so it's disabled
before merge into master repo. Plus force all unimplemented functions to
output once, not repeatly.
2017-07-22 21:43:02 -05:00
RadWolfie 3da46a9a15 Implement Specific Codec Audible
* NEW: PCM, XBOX_ADPCM, and unknown codec audible are functional.
* FIXED: Preserve volume whenever buffer is resize.

This will allow all dev and testers to test and report which codec is
not outputing audible properly.
2017-07-22 21:43:02 -05:00
RadWolfie b82954ef09 Oops...
Forgot to re-append hRet result test.
2017-07-22 21:43:02 -05:00
RadWolfie d052a19690 Implement Initialize Audio Settings
First attempt to obtain audio settings configured by user request. At
the moment, selecting audio adapter device is functional. More to come
later on...
2017-07-22 21:43:02 -05:00
RadWolfie 4dad779758 Audio Settings Stub
First initialization audio settings support.
2017-07-22 21:43:02 -05:00
RadWolfie 7c7799be99 Serveral Fixes base on RETURN_RESULT_CHECK macro
* Missing control frequency flag to control base on Smashing Drive
title.
* SetVolume return invalid arg due to setting MIN volume is -10,000.
Changed mockup into between -10,000 and -6,400 as silence.
* SetFormat has been tweaked a bit as workaround for now. It needs to
create new buffer for secondary buffer usage.

Known Issue:
SetConeOrientation continue to return DSERR_INVALIDPARAM flag in Turok
Evolution for some reason. All args look right and is fine to me...
2017-07-22 21:39:27 -05:00
RadWolfie db3c23066d Introduce RETURN_RESULT_CHECK for DSound
Performing this method shall reduce hidden failures.
2017-07-22 21:39:27 -05:00
RadWolfie a3872923a7 Play Should Be Using Play Flags
Oops... And fix a trigger for X_DSBPLAY_FROMSTART to be check "if"
properly.

This fix no audio from Psyvariar 2 - Extend Edition gameplay. 🎉
👍
2017-07-22 21:39:27 -05:00
RadWolfie 836376c0a1 Minor Improvement
- Added check if DirectSound3DBuffer8 is null due to dummy WAVEFORMATEX
causing issue for DSBCAPS_3D flag.
- Another code standard fix.
- Forward SetConeOutsideVolume to hybrid function to reduce duplicate
code.
2017-07-22 21:39:26 -05:00
RadWolfie c3121b740a Minor Fix
Also need check if it is not null before check flag. Miami Vice crashed
just for this issue.
2017-07-22 21:39:26 -05:00
RadWolfie a762ead109 Minor Coding Standard 2017-07-22 21:39:26 -05:00
RadWolfie ee39f4f16d More SynchPlayback Stub
And use lock's offset given by title for another accuracy.
2017-07-22 21:39:26 -05:00
RadWolfie 607c71eba3 Reduce Buffers Unlock Duplicate 2017-07-22 21:39:26 -05:00
RadWolfie 2e88311aa4 Various Fixes Again
- Renaming variable type to uppercase to keep code sanity.
- Re-add debug message from SynchPlayback.
- Corrected flag check for to play or not to play audio buffer.
- Verified dwFlags is the same as windows for lock buffer.
2017-07-22 21:39:26 -05:00
RadWolfie fc936cfc9c Reviewed Coding Correction 2017-07-22 21:39:26 -05:00
RadWolfie 9a834a9f52 Implement SynchPlayback Support
- Moved play caller into HybridDirectSound to perform same task.
- Added DSB_FLAG_SYNCHPLAYBACK_CONTROL flag for control.
2017-07-22 21:39:26 -05:00
RadWolfie 7c7fa2f795 One More...Correction...
Just one tiny correction even though it has no affect to execution.
2017-07-22 21:39:26 -05:00
RadWolfie b7fd5ad4c0 Add Comments
Adding comments before implement support for simple SynchPlayback
control.
2017-07-22 21:39:26 -05:00