Commit Graph

3125 Commits

Author SHA1 Message Date
RadWolfie d145edd1be Introduce DSound 3911 database. 2017-10-18 20:46:44 +01:00
RadWolfie e7e418f598 Generic DirectSoundBuffer_Stop OOVPAs
- CMcpxBuffer_Stop has not changed as of 4242 and newer.
- CDirectSoundBuffer_Stop has not changed as of 4134 and newer.
- IDirectSoundBuffer_Stop has not changed since 3911.
- IDirectSoundBuffer_SetLoopRegion does match against 3911.

TODO: Need to re-locate versions in correct version file.

Verified with:
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [4242] Smashing Drive & Gauntlet Dark Legacy
- [4361] Burnout
- [4627] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:43 +01:00
jarupxx fbb7a74de2 Removes // (Offset,Value)-Pair # text 2017-10-18 20:46:43 +01:00
jarupxx 55b55aa509 Fixed up 2017-10-18 20:46:42 +01:00
jarupxx 7779319784 Added comments difference from 4134 2017-10-18 20:46:42 +01:00
jarupxx 8bc426be7b Added SetPitch (4134-5849)
The following functions support 4134 to 5849
 - CDirectSoundVoice_SetPitch
 - CDirectSoundBuffer_SetPitch
 - IDirectSoundBuffer_SetPitch
 - CDirectSoundStream_SetPitch
2017-10-18 20:46:42 +01:00
jarupxx cdcf5f2a06 Fixed CDirectSoundBuffer_SetVolume 4134 2017-10-18 20:46:41 +01:00
jarupxx df9a1ab6ac Oops. CDirectSoundVoice_SetPitch come back 2017-10-18 20:46:41 +01:00
jarupxx 07c96f0004 Added DSound 4039 HLE Database
Following PATCH are available
 - CDirectSoundStream_SetVolume
 - CDirectSound_CommitDeferredSettings
 - DirectSoundDoWork
 - IDirectSoundBuffer_SetBufferData
 - IDirectSoundBuffer_SetFrequency
 - IDirectSoundBuffer_SetHeadroom
 - IDirectSoundBuffer_SetLoopRegion
 - IDirectSoundBuffer_SetPitch
 - IDirectSoundBuffer_SetVolume
 - IDirectSoundBuffer_Stop
 - IDirectSound_SetDistanceFactor
 - IDirectSound_SetDopplerFactor
 - IDirectSound_SetRolloffFactor
2017-10-18 20:46:41 +01:00
RadWolfie f84327814d Introduce DSound 4039 HLE Database
- Added DirectSoundCreate
- Added DirectSoundCreateBuffer
- Added CDirectSound_CreateSoundBuffer
- Noted CDirectSound_CreateSoundBuffer OOVPA version 3936 has false
detection for 4039.
2017-10-18 20:46:40 +01:00
RadWolfie 206ee8046d Fix Solution Explorer Filter
- Moved DSound 5849 to bottom section.
- Added missing DSound.OOVPA.inl file to filter.
2017-10-18 20:46:40 +01:00
RadWolfie 22ca5b38d4 Implement Workaround Fix for missing DSound Library
The workaround will fix DSound 4039 build. It will also fix any other
missing DSound library section as well. In HLEDB v2, the scan method
will check for DSOUND header section. If it doesn't have it, then DSound
DB will be skip.
2017-10-18 20:46:40 +01:00
RadWolfie 5f38195dfd Removed SetFormat
SetFormat method function can be only used on primary buffer class base on DirectSound's documentation.
2017-10-18 20:46:39 +01:00
RadWolfie ac8a827d9c Carry Original Values Over 2017-10-18 20:46:39 +01:00
RadWolfie 569dc59010 Fixed Gauntlet Dark Legacy title
Moving SetFormat OOVPAs to 4242 version.
2017-10-18 20:46:39 +01:00
RadWolfie 4ed100ec83 Fixed Smashing Drive title
Since v1 is overriding build version, lets lower DirectSoundCreateBuffer
OOVPA to last known detected version.
2017-10-18 20:46:38 +01:00
RadWolfie 10c686c65d Append to Previous Commit 2017-10-18 20:46:38 +01:00
RadWolfie fd28748b0f Improve Detection
- Add missing CDirectSound_GetCaps detection for 4361 xdk titles and
later.
- Changed CDirectSound_SynchPlayback patch to xref for 5558.
2017-10-18 20:46:38 +01:00
RadWolfie 0891a74ac2 Couple fixes to comments and a TODO task.
- Removing 8 from DirectSound8's comments for DSound.1.0.5233.inl
- Added a TODO message for 2 different OOVPA signature for same
functionality.
2017-10-18 20:46:37 +01:00
RadWolfie 3a18fe1cb1 Removing Duplicate Patch Function 2017-10-18 20:46:37 +01:00
RadWolfie 022b61b97d Adding IDirectSoundBuffer_Unlock in HLEDB v1 Section 2017-10-18 20:46:37 +01:00
RadWolfie 443e0987ed Implement IDirectSoundBuffer Unlock OOVPA
Verified Unlock does exist in xbe file and is in used. Even though xbox
doesn't handle it directly. It will allow fix audio issue especially
Turok Evolution's XADPCM backgrounc music. Yet is not fully fixed...

On side note... Xbox dashboard is calling Unlock function?!?!
2017-10-18 20:46:37 +01:00
jarupxx b68e9bb90b Move a comment in Rollback support signature section 2017-10-18 20:46:37 +01:00
jarupxx 2a5009d5a2 Fixed XREF name
Plus fixed IDirectSoundBuffer_SetHeadroom 4134 OOVPA
2017-10-18 20:46:36 +01:00
jarupxx 9f33a1f4b7 Improved DSound OOVPA
Also
- Merged alias DSound OOVPA
- Renamed IDirectSoundBuffer_StopEx v5233 to IDirectSoundStream_FlushEx
2017-10-18 20:46:36 +01:00
jarupxx 16639a0500 Improved similar DSound OOVPA 2017-10-18 20:46:36 +01:00
RadWolfie e921d48299 Fix False Positive for XRefs
Since EmuLocateFunction force to add into XRefDataBase array table. It
will only add inside EmuRegisterSymbol function while
EmuLocateFunctionV2 does not.

This method changed numberous false positive to a lot fewer false
positive depending on OOVPA using rollback sig or not.
2017-10-18 20:46:36 +01:00
RadWolfie 525b1ea7af Add Missing OOVPA Patch
Also include rollback alias.
2017-10-18 20:46:35 +01:00
RadWolfie 4107f52e92 Typo Correction
Plus add rollback message header.
2017-10-18 20:46:35 +01:00
RadWolfie 05392878f4 2 New DSound OOVPA v3936
Add 2 New OOVPA 3936 for...
- CDirectSoundBuffer_SetConeOrientation
- CDirectSoundBuffer_SetConeOutsideVolume
Moved 2 4134 to 3936 compatible
- IDirectSoundBuffer_SetConeOrientation
- IDirectSoundBuffer_SetConeOutsideVolume

Tested against Blood Wake and Simpson - Road Rage titles. However Halo
Combat Evolved do return false positive for 2 new signatures (I think).
2017-10-18 20:46:35 +01:00
RadWolfie ee4cc619f8 Improve and Detect Duplicate
For on-going verification to verify any signatures are duplicate or not.
Works as intended base on several titles outputing duplicate messages.
2017-10-18 20:46:35 +01:00
RadWolfie b8e32f2ede Whoops
Forgot to add this addition to able compile HLEDB v2 build.
2017-10-18 20:46:35 +01:00
RadWolfie 625ebe9c78 Append to Previous Commit 2017-10-18 20:46:34 +01:00
RadWolfie 16a3a99baa First Draft of DSound DB Merge
Not tested with all titles, some may will regress anyway.

Plus removed extra "extern"s since they are not necessary in .cpp file.
2017-10-18 20:46:34 +01:00
RadWolfie f780398df3 PatrickvL's HLEDB v2 structure 2017-10-18 20:46:34 +01:00
RadWolfie 9e18bee934 DSound HLEDB Cleanup
Cleaning cluster aliases, re-naming to correct function names, and found
certain signature do match lower XDK version.
2017-10-18 20:46:34 +01:00
PatrickvL e305ff48bb Merge pull request #768 from LukeUsher/xbe-loading
Xbe loading & FileSystem Tweaks
2017-10-18 20:33:32 +02:00
Luke Usher 04e14338d0 Abort with an error if any preload section fails to load 2017-10-18 16:41:33 +01:00
Luke Usher 58939f8297 XeUnloadsection should return STATUS_SUCCESS on success 2017-10-18 16:41:13 +01:00
Luke Usher 1613b5d9a6 Create a .bin file for each partition, which is used for direct HDD partition header access
Dashupdate.xbe progresses further with this, now it attempts to format the partitions but fails due to incomplete implementation of DeviceIoControlFile (Specifically IOCTL_DISK_GET_DRIVE_GEOMETRY and IOCTL_DISK_GET_PARTITION_INFO
2017-10-17 23:17:18 +01:00
Luke Usher f4573d097a Fix an issue caused by DesiredAccess not being correctly set when FILE_SYNCHRONOUS is used in CreateOptions 2017-10-17 23:14:13 +01:00
Luke Usher d2514874de Attempt to prevent Share Violation errors 2017-10-17 23:13:21 +01:00
Luke Usher 0fb6a72ffd Fix a compiler warning in Xbe.cpp 2017-10-17 23:12:57 +01:00
Luke Usher 4b35db183c Xbe Loading Improvements
- Rather than copying the entire Xbe into the xbox address space, we
copy only the header
- Only sections marked as 'preload' are loaded at boot time
- All other sections are loaded/unloaded on demand by the running title,
via calls to XLoadSecton/XUnloadSection
- Fixed an off-by-one error in Xbe section name parsing
- Fix an incorrect assumption that section names are always
8 characters null-terminated. They are 9 characters, null padded
2017-10-17 17:25:03 +01:00
RadWolfie 853eea7bdb Merge pull request #764 from ergo720/hlecache
Fix #746 issue
2017-10-11 14:43:07 -05:00
ergo720 aedf8df158 Slight improvements 2017-10-11 21:27:31 +02:00
ergo720 5a13c67b54 Fix for issue #746 2017-10-11 20:14:37 +02:00
PatrickvL 5d1d8f109c Merge pull request #763 from ergo720/crash-fix
Crash detection implementation
2017-10-10 22:17:58 +02:00
ergo720 90f885e9bb Slight improvements 2017-10-10 19:22:15 +02:00
ergo720 fe7ef86561 Crash detection implementation 2017-10-10 14:47:30 +02:00