Commit Graph

3134 Commits

Author SHA1 Message Date
RadWolfie f1b339012e Renaming IDSB and CDSS SetMixBinVolumes(2)
- Renamed CDirectSoundStream_SetMixBinVolumes(2)
- Renamed IDirectSoundBuffer_SetMixBinVolumes(2)
- Moved CMcpxVoiceClient_SetVolume to 3911
- Moved CDirectSoundVoice_SetMixBinVolumes to 3911
- Moved CDirectSoundStream_SetMixBinVolumes_12 to 3911
- Moved IDirectSoundBuffer_SetMixBinVolumes_12 to 3911
- Add XREF entry to CDirectSoundVoice_SetVolume 3911
- Add XREF entry to CDirectSoundVoice_SetMixBinVolumes 4039

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [4637] Turok Evolution
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:47 +01:00
jarupxx e8ab6bc383 Added DSound 4039 HLE Database (#720)
* Added DSound 4039 HLE Database

Following PATCH are available
 - IDirectSoundBuffer_GetCurrentPosition
 - IDirectSoundBuffer_Lock
 - IDirectSoundBuffer_SetPlayRegion
 - IDirectSoundBuffer_SetCurrentPosition
 - IDirectSoundBuffer_SetFilter
 - IDirectSoundBuffer_SetMixBins
 - IDirectSoundBuffer_SetMixBinVolumes2
 - IDirectSoundBuffer_StopEx
 - IDirectSoundBuffer_SetLFO
 - IDirectSoundBuffer_SetEG
 - IDirectSoundBuffer_SetOutputBuffer
 - IDirectSoundBuffer_SetConeOutsideVolume
 - IDirectSoundBuffer_SetMaxDistance
 - IDirectSoundBuffer_SetMinDistance
 - IDirectSoundBuffer_SetMode
 - IDirectSoundBuffer_SetPosition
 - IDirectSoundBuffer_SetVelocity
 - IDirectSoundBuffer_SetConeOrientation
2017-10-18 20:46:46 +01:00
RadWolfie 016290fb75 More Moving and Additions
- Moved DirectSoundEnterCriticalSection to 3911
- Moved IDirectSoundBuffer_AddRef to 3911
- Moved IDirectSoundBuffer_Release to 3911
- Moved IDirectSoundBuffer_Unlock to 3911
- Moved IDirectSound_SetCooperativeLevel to 3911
- Moved IDirectSoundBuffer_StopEx to 3911
- Moved IDirectSoundBuffer_PlayEx to 3911
- Add CMcpxBuffer_Stop to 3911
- Add CDirectSoundBuffer_StopEx to 3911
- Add CDirectSoundBuffer_PlayEx to 3911

Generic OOVPA functions are...
- DirectSoundEnterCriticalSection
- IDirectSoundBuffer_AddRef
- IDirectSoundBuffer_Release
- IDirectSoundBuffer_Unlock
- IDirectSound_SetCooperativeLevel

Tested with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [5558] Dino Crisis 3
2017-10-18 20:46:46 +01:00
RadWolfie 468a118796 DSBuffer_GetStatus and DSBuffer_GetCurrentPosition
- Moved CMcpxBuffer_GetCurrentPosition to 3911
- Moved CDirectSoundBuffer_GetCurrentPosition to 3911
- Moved IDirectSoundBuffer_GetCurrentPosition to 3911
- Moved CMcpxBuffer_GetStatus to 3911
- Moved CDirectSoundBuffer_GetStatus to 3911
- Moved IDirectSoundBuffer_GetStatus to 3911
- Add CMcpxBuffer_GetCurrentPosition to 4039
- Add CDirectSoundBuffer_GetCurrentPosition to 4039
- Add CMcpxBuffer_GetStatus to 4039
- Add CDirectSoundBuffer_GetStatus to 4039
- Removed duplicate CMcpxBuffer_GetCurrentPosition OOVPAs.

IDirectSoundBuffer_GetCurrentPosition and IDirectSoundBuffer_GetStatus
are generic functions.

Tested with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [5558] Dino Crisis 3
2017-10-18 20:46:45 +01:00
jarupxx 78af3c42db Fixed CDirectSoundBuffer_SetConeOrientation 3936 OOVPA 2017-10-18 20:46:45 +01:00
RadWolfie 93c8a40ae2 Oops, removing bad code.
Um, keep moving. Nothing to see here.
2017-10-18 20:46:45 +01:00
jarupxx eb7554070a Renamed to friendly OOVPA name
+ Sorting
+ Removes IDirectSound8_SetAllParameters.
IDirectSound8_ prefix is obsolete.
Also IDirectSound_SetAllParameters is available.
2017-10-18 20:46:44 +01:00
RadWolfie 8abc01c3be Fix Versions in DSound 5233 Database
Since there was changes in master branch, it would not compile due to
lowering versions support in HLE database v2.
2017-10-18 20:46:44 +01:00
RadWolfie c34a5e9d60 Improve Scan Support
Now it has multi sections array support up to 2 (can be change by
increasing LINKSCANSEC_MAX

In fact, we can finally support other than DSound in v2 database now!
🎉
2017-10-18 20:46:44 +01:00
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