dsound: Add info to failed tests.
Print format for failed SetFormat calls.
This commit is contained in:
parent
8efe95e70a
commit
c460d9becf
|
@ -378,8 +378,8 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
|
|
||||||
init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
|
init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
|
||||||
rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
|
rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
format_string(&wfx2), DXGetErrorString8(rc));
|
||||||
|
|
||||||
/* There is no garantee that SetFormat will actually change the
|
/* There is no garantee that SetFormat will actually change the
|
||||||
* format to what we asked for. It depends on what the soundcard
|
* format to what we asked for. It depends on what the soundcard
|
||||||
|
|
|
@ -270,8 +270,8 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
|
|
||||||
init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
|
init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
|
||||||
rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
|
rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
format_string(&wfx2), DXGetErrorString8(rc));
|
||||||
|
|
||||||
/* There is no garantee that SetFormat will actually change the
|
/* There is no garantee that SetFormat will actually change the
|
||||||
* format to what we asked for. It depends on what the soundcard
|
* format to what we asked for. It depends on what the soundcard
|
||||||
|
|
|
@ -550,8 +550,8 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
|
||||||
formats[f][2]);
|
formats[f][2]);
|
||||||
wfx2=wfx;
|
wfx2=wfx;
|
||||||
rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
|
rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
format_string(&wfx), DXGetErrorString8(rc));
|
||||||
|
|
||||||
/* There is no garantee that SetFormat will actually change the
|
/* There is no garantee that SetFormat will actually change the
|
||||||
* format to what we asked for. It depends on what the soundcard
|
* format to what we asked for. It depends on what the soundcard
|
||||||
|
|
|
@ -582,8 +582,8 @@ static HRESULT test_primary_secondary8(LPGUID lpGuid)
|
||||||
formats[f][2]);
|
formats[f][2]);
|
||||||
wfx2=wfx;
|
wfx2=wfx;
|
||||||
rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
|
rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
format_string(&wfx), DXGetErrorString8(rc));
|
||||||
|
|
||||||
/* There is no garantee that SetFormat will actually change the
|
/* There is no garantee that SetFormat will actually change the
|
||||||
* format to what we asked for. It depends on what the soundcard
|
* format to what we asked for. It depends on what the soundcard
|
||||||
|
|
Loading…
Reference in New Issue