mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
Revert "[DSOUND] Don't force status to failure by default in primarybuffer_SetFormat (#3911)"
Revert my last dsound fix, because it does not fix the actual problem with audio formats support. It only makes the situation worse. It prevents the error when creating an audio stream, but the sound is not playing correctly, both in ReactOS and Windows (with our dsound.dll). Without this fix, it works perfectly on Windows, but does not in ROS.
In particular, the sound is not playing properly in AIMP 4.71 with other audio formats besides default (44100 Hz, 16 bit, stereo). And any other apps which request these audio formats may be also affected as well.
Force the status back to failure, because otherwise the badly required code is not executed at all.
I've made a more correct fix(es) in other audio component(s) instead and will submit them if further PRs.
This reverts commit 183566ee58
.
CORE-10907
This commit is contained in:
parent
782bf0e3dc
commit
6ef7b67615
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ LPWAVEFORMATEX DSOUND_CopyFormat(LPCWAVEFORMATEX wfex)
|
|||
|
||||
HRESULT primarybuffer_SetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex)
|
||||
{
|
||||
HRESULT err = S_OK;
|
||||
HRESULT err = DSERR_BUFFERLOST;
|
||||
int i;
|
||||
DWORD nSamplesPerSec, bpp, chans;
|
||||
LPWAVEFORMATEX oldpwfx;
|
||||
|
|
Loading…
Reference in a new issue