Commit Graph

3117 Commits

Author SHA1 Message Date
RadWolfie 505c671fa3 Fix XWaveFileCreateMediaObjectEx's LOG_FUNC output 2017-11-03 16:10:08 -05:00
RadWolfie be913dedea Fix XFileCreateMediaObject's LOG_FUNC output 2017-11-03 16:02:59 -05:00
RadWolfie 6b3b4eb8ae Add DSound Stubs 2017-11-03 12:20:51 -05:00
jarupxx 6a7ea66bc9 Add Locking offset 0x00 2017-11-03 11:40:20 -05:00
jarupxx 3a36e5a7b8 Add DSound 4134 OOVPAs
Add CMcpxVoiceClient_SetLFO 4134
Moved CDirectSoundBuffer_SetLFO 4242 to 4134
Moved CDirectSoundBuffer_SetEG 4242 to 4134

Verified with
- [4134] Double-S.T.E.A.L
- [4242] NFL Blitz 2002
2017-11-03 11:40:20 -05:00
jarupxx d1f494eeae Add DSound 4039 OOVPAs
Add CDirectSound_SetAllParameters 4039
Add CDirectSound_SetMixBinHeadroom 4039

Verified with
- [4039] Azurik PAL
2017-11-03 11:40:20 -05:00
jarupxx 883eff28fc Add DSound 4039, 4134 OOVPAs
Add CDirectSoundBuffer_PlayEx 4039
Add CDirectSoundBuffer_SetNotificationPositions 4039
Add CDirectSoundStream_SetFormat 4039
Add CDirectSoundStream_SetHeadroom 4039
Add CDirectSoundStream_SetI3DL2Source 4039
Add CDirectSoundVoice_SetFormat 4039
Add CDirectSound_EnableHeadphones 4134
Add CMcpxBuffer_Play 4039
Add CMcpxBuffer_Play2 4134
Add CMcpxBuffer_Stop2 4134
Add IDirectSoundStream_SetHeadroom 4039
Add IDirectSound_CommitEffectData 4039
Add IDirectSound_GetEffectData 4039
Add IDirectSound_SetEffectData 4039
Add IsValidFormat 4039
Moved CDirectSoundBuffer_PlayEx 4361 to 4134
Moved CDirectSoundBuffer_SetNotificationPositions 4134 to 4242
Moved CDirectSoundBuffer_StopEx 4361 to 4134
Moved CDirectSoundStream_FlushEx 4627 to 4134
Moved CDirectSoundStream_SetFormat 4242 to 4134
Moved CDirectSoundVoice_SetFormat 4242 to 4039
Moved CDirectSoundVoice_SetFormat 4242 to 4134
Moved CMcpxBuffer_Play2 4134 to 4039
Moved DirectSoundCreateBuffer 4242 to 4134
Moved IDirectSoundBuffer_SetFormat 4242 to 4039
Moved IDirectSoundStream_FlushEx 4627 to 4134
Moved IDirectSoundStream_SetFormat 4242 to 4039
Moved XAudioDownloadEffectsImage 4361 to 4134

Verified with
- [4039] Azurik PAL
- [4134] Double-S.T.E.A.L
- [4242] NFL Blitz 2002
2017-11-03 11:40:20 -05:00
RadWolfie 35c586e02b Flush Disabled 3936 OOVPAs 2017-11-01 22:35:29 -05:00
RadWolfie f334be3a90 Mark DSound 5558 Lib Done 2017-11-01 22:34:51 -05:00
RadWolfie ad929ffdf5 Final Add DSound OOVPAs
- Add CDirectSoundVoice_Set3DVoiceData to 5558
- Add CDirectSoundBuffer_Set3DVoiceData to 5558
- Add CDirectSoundStream_Set3DVoiceData to 5558
- Add CDirectSound_MapBufferData to 5344
- Add CDirectSound_UnmapBufferData to 5344
- Add IDirectSoundBuffer_Set3DVoiceData to 5558
- Add IDirectSound_MapBufferData to 5344
- Add IDirectSound_UnmapBufferData to 5344
- Add XAudioSetEffectData to 5344
- Add XFileCreateMediaObject to 5344
- Add XWaveFileCreateMediaObjectEx to 5344

NOTE: Need to make some stub functions.

Verified with
- [5558] Dino Crisis 3
2017-11-01 22:31:36 -05:00
RadWolfie 6d5c82862b Add DSound OOVPAs
- Add CMcpxVoiceClient_GetVoiceProperties to 5344
- Add CDirectSoundVoice_GetVoiceProperties to 5344
- Add CDirectSoundBuffer_GetVoiceProperties to 5344
- Add IDirectSoundBuffer_GetVoiceProperties to 5344
- Add CDirectSoundStream_GetVoiceProperties to 5344
- Add IDirectSoundStream_GetVoiceProperties to 5344
- Add CDirectSound3DCalculator_GetVoiceData to 5344
- Add IDirectSound3DCalculator_GetVoiceData to 5344
- Add CDirectSound3DCalculator_GetPanData to 5344
- Add IDirectSound3DCalculator_GetPanData to 5344
- Add CDirectSound3DCalculator_GetMixBinVolumes to 5344
- Add IDirectSound3DCalculator_GetMixBinVolumes to 5344
- Add CDirectSound3DCalculator_Calculate3D to 5344
- Add IDirectSound3DCalculator_Calculate3D to 5344

NOTE: There are no stubs for these APIs.
2017-11-01 20:55:24 -05:00
RadWolfie 3586332346 More DSound Cleanup
Add [5558] Dino Crisis 3, verified with full library found, to list.
2017-11-01 14:53:52 -05:00
RadWolfie 5f33fcb48d Fix DSound EmuPatch Functions' API
- Corrected all DSound EMUPATCH functions' API
- Add CDirectSoundStream_PauseEx and IDirectSoundStream_PauseEx
2017-11-01 12:44:37 -05:00
RadWolfie 10736eeb45 Fix DS 3DBuffer Creation From Correct DS Buffer
Plus remove unnecessary temporary buffer creation.
2017-10-31 13:26:58 -05:00
RadWolfie 8800a493db Lowering Some OOVPAs
- Rename DS_CMemoryManager_PoolAlloc to DSound_CMemoryManager_PoolAlloc
- Rename DS_CRefCount_AddRef to DSound_CRefCount_AddRef
- Rename DS_CRefCount_Release to DSound_CRefCount_Release
- Moved CMcpxBuffer_SetBufferData 5788 to 5455
- Moved CDirectSoundVoiceSettings_SetMixBins 5558 to 5455
- Moved CDirectSoundVoice_CommitDeferredSettings 5558 to 5455
- DSound_CMemoryManager_PoolAlloc 5788 to 5455

NOTE: Ghost Recon: Island Thunder has issue with intro. If press start
buttton on controller, it will go into main menu.

Verified with
- [5455] Ghost Recon: Island Thunder
2017-10-31 06:15:32 -05:00
RadWolfie 1d0bc15069 More DSound Clean Up
TODO: XAudioDownloadEffectsImage 5558 has same OOVPA as 4361. Need
investigate more of reason why this false detection occur.
2017-10-31 05:39:16 -05:00
RadWolfie 097e6ab88c DSound Database Cleanup Begin
Since so many duplicate OOVPAs has been found.
I am starting with clean up process for DSound database.
Thus narrowing down necessary of workload to research and add missing
OOVPAs.
2017-10-31 04:37:53 -05:00
RadWolfie 4003059966 Fix Loop/Play Region Length Requirement
This should resolve CreateSoundBuffer Failed message for JSRF.
Resolve Cxbx-Reloaded/Cxbx-Reloaded#780
2017-10-31 01:50:37 -05:00
RadWolfie 07ba1803ae So much changes. Need to re-review (twice)
- Add CDirectSound_CommitDeferredSettings to 5455 (Generic OOVPA)
- Add CDirectSoundBuffer_SetBufferData to 4134 (Generic OOVPA, replaced
original 4134)
- Add DS_CRefCount_Release to 5455
- Add CMcpxStream_Flush to 5344 and 5455
- Add CDirectSound_EnableHeadphones to 5455
- Add CMcpxStream_Discontinuity to 5344 and 5455
- Add CMcpxStream_GetStatus to 5344
- Add CMcpxVoiceClient_SetMixBins to 5344
- Add CDirectSound_SetI3DL2Listener to 5455
- Add CHRTFSource_SetFullHRTF5Channel to 5344
- Add CHRTFSource_SetLightHRTF5Channel to 5344
- Add CHRTFSource_SetFullHRTF4Channel to 5344
- Add CHRTFSource_SetLightHRTF4Channel to 5344
- Add DirectSoundUseLightHRTF to 5344
- Add DirectSoundUseFullHRTF4Channel to 5344
- Add DirectSoundUseLightHRTF4Channel to 5344
- Update CDirectSound_SetMixBinHeadroom 4134 (To enable support generic
OOVPA for 5455 and newer)
- Replaced CDirectSoundVoice_SetI3DL2Source in 5344
- Replaced CDirectSound_SetRolloffFactor in 5344
- Replaced CDirectSound_SetDopplerFactor in 5344
- Replaced CDirectSound_SetDistanceFactor in 5344
- Replaced CDirectSound_SetI3DL2Listener in 5344
- Fixed CDirectSound_SetPosition 5344
- Fixd CDirectSound_SetVelocity 5344
- Removed CDirectSoundBuffer_SetBufferData from 5558 (false detection)
and 5788 (alias)
- Removed IDirectSoundBuffer_SetBufferData from 5558 and 5788
(duplicates)
- Removed CDirectSound_CommitDeferredSettings from 5558 and 5788
2017-10-30 19:55:10 -05:00
RadWolfie df8b18ef23 Fixed Found/Skipped Message 2017-10-30 19:51:15 -05:00
RadWolfie 8228de52d0 Introduce DSound 5455 File 2017-10-30 19:41:13 -05:00
RadWolfie 7dae968adb Remove Leftover Linkage
Since these files doesn't exist these shouldn't be here.
2017-10-30 19:38:40 -05:00
PatrickvL 262810b8c1
Merge pull request #782 from jarupxx/OOVPA_lowered
Finalize 90% Complete XAPI, XNET, XONLINE Database
2017-10-31 00:30:38 +01:00
jarupxx 6b12a05919 Fix CMiniport_IsFlipPending OOVPA count 2017-10-30 19:35:39 +09:00
jarupxx 54ff0ea8e5 Fix Xapi OOVPA's XDK revision to lowest known match
Verified with known titles which did compiled with full library.
2017-10-30 19:29:38 +09:00
jarupxx e9489097d1 Fix XNET, XOnlines OOVPA's XDK revision to lowest known match
Verified with known titles which did compiled with full library.
2017-10-30 19:28:41 +09:00
PatrickvL 153a6107e9
Merge pull request #781 from jarupxx/XREF_Cleanup
XREF Cleanup
2017-10-29 12:43:01 +01:00
jarupxx 5695059980 Remove unuse XREF id's 2017-10-29 18:23:22 +09:00
jarupxx 076a3efa64 Rename full-uppercase DSound XREF id's 2017-10-29 18:23:15 +09:00
jarupxx c868a98791 Rename full-uppercase D3D XREF id's 2017-10-29 18:23:09 +09:00
jarupxx 751725387c Enable XREF_D3DDEVICE_SETLIGHT xref 2017-10-29 18:10:53 +09:00
jarupxx fa81884b87 Split up the count 2017-10-29 18:10:53 +09:00
jarupxx 07d68f7f1b Formatting 2017-10-29 18:10:46 +09:00
Luke Usher 909804654c
Merge pull request #780 from RadWolfie/DSound_Cleanup
DSound Major Improvement + Cleanup
2017-10-29 09:08:53 +00:00
RadWolfie 095c8402f7 Get Status First, Stop Buffer, Then CurrentPosition
Re-arrange order where it should had been in the first place to have
seamless audio transfer.
2017-10-28 18:45:56 -05:00
RadWolfie 8c0eb97228 Corrected Volume Check 2017-10-28 18:45:55 -05:00
RadWolfie 4c44c0f568 Shrink Single Longest Line into Shorter Multilines 2017-10-28 18:45:55 -05:00
RadWolfie c40bac5060 Rename DSoundBufferTransfer Function
Rename DSoundBufferTransfer to DSoundBufferTransferSettings for better
clarification.
2017-10-28 18:45:55 -05:00
RadWolfie b94a8b5adc Add Notes 2017-10-28 18:45:55 -05:00
RadWolfie 4a6b3ecb54 Fix DSoundBufferTransfer Function
No reason to create 3D Buffer here... Plus that's not the purpose of
"Transfer". Oops!
2017-10-28 18:45:54 -05:00
RadWolfie c9ebe3ed18 Implement SetLoopRegion and SetPlayRegion Support
WaveBank Sample now play audio 100% correctly, can't verify with other
sound samples.
Audio do sound a bit better to me.

Some titles are still not getting all audio outputting for some reason.
However, it did brought more audible outputs now.

NOTE: It is still "somewhat" leaving experimental stage.
2017-10-28 18:45:54 -05:00
RadWolfie 7fc65b57ce Implement SetPitch Support
This is hard as hell I ever had done. The upside is SetPitch function no
longer fail for DM3DScript sample! 🎆

Tested 12KHz, 48KHz, and 96KHz conversion to ratio and back to hertz
with success.

Any titles using SetPitch in the past should now play audio nicely.
2017-10-28 18:45:54 -05:00
RadWolfie 02a76ffc8d Improve DSound 3D Interfaces
- Fixed HybridDirectSound3DBuffer_SetAllParameters
- Add Info to 3D Interfaces
2017-10-28 18:45:54 -05:00
RadWolfie 186530ee25 Update NULL to xbnullptr For DSound
Note: Some NULL are actually being used internally and is not given to
xbox's xbe.
2017-10-28 18:45:53 -05:00
RadWolfie 6eff832b07 Re-fix Check CreateSound3DBuffer Return Value
For now, let's keep hRet separate from DirectSound's 3DBuffer interfaces
usage. By using hRet3D variable. Just in case we are returning hRet to
xbe.
2017-10-28 18:45:53 -05:00
RadWolfie 3528fccb2e Prevent SetConeOrientation's Popup Message Report
For now just surpress the pop up message and output a warning instead.
2017-10-28 18:45:53 -05:00
Luke Usher 6a705276b7 Merge pull request #778 from PatrickvL/MemoryManagerFix
MemoryManager : Fixed block-lookup with non-base addresses, by using …
2017-10-27 13:21:52 +01:00
PatrickvL 7f82ac6c03 MemoryManager : Fixed block-lookup with non-base addresses, by using block.upper_bound as key.
This resolves crashes in Cartoon sample (and potentially many other titles).
2017-10-27 11:46:15 +02:00
PatrickvL 131ce6dab8 Merge pull request #777 from RadWolfie/DSound_Cleanup
DSound Improvement + More Cleanup
2017-10-26 00:43:07 +02:00
RadWolfie a02c5d76f0 Change Reminder to All Developers
Even to remind myself.
2017-10-25 16:44:16 -05:00