Since some titles are able to progress further. I'm adding a note for what progress had been made.
This commit is contained in:
RadWolfie 2019-02-14 22:11:54 -06:00
parent c9db98db28
commit 72501f8933
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ inline void GeneratePCMFormat(
memcpy(lpwfxFormatHost, lpwfxFormat, sizeof(WAVEFORMATEX) + lpwfxFormat->cbSize);
}
// NOTE: Currently a workaround hack fix until custom management for buffer/stream can allow unallocated buffer.
// Without this fix, some titles wouldn't progress further. Plus no matter what values are set in Xbox's wfxFormat
// are approved. It does need further investigation which require LLE APU stubbed and a HLE verbose plugin.
if (X_BufferSizeRequest == 0 &&
(lpwfxFormatHost->nSamplesPerSec == 0 || lpwfxFormatHost->nAvgBytesPerSec == 0)) {
// NOTE: When X_BufferSizeRequest is 0, creation is allow to be performed until allocated size is given from different API.