dsound/tests: Win64 printf format warning fixes.
This commit is contained in:
parent
699d4413bf
commit
65aac34c56
|
@ -5,7 +5,6 @@ VPATH = @srcdir@
|
||||||
TESTDLL = dsound.dll
|
TESTDLL = dsound.dll
|
||||||
IMPORTS = dsound ole32 version user32 kernel32
|
IMPORTS = dsound ole32 version user32 kernel32
|
||||||
EXTRALIBS = -ldxguid -luuid -ldxerr8
|
EXTRALIBS = -ldxguid -luuid -ldxerr8
|
||||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
|
||||||
|
|
||||||
CTESTS = \
|
CTESTS = \
|
||||||
capture.c \
|
capture.c \
|
||||||
|
|
|
@ -95,7 +95,7 @@ const char * format_string(const WAVEFORMATEX* wfx)
|
||||||
{
|
{
|
||||||
static char str[64];
|
static char str[64];
|
||||||
|
|
||||||
sprintf(str, "%5ldx%2dx%d %s",
|
sprintf(str, "%5dx%2dx%d %s",
|
||||||
wfx->nSamplesPerSec, wfx->wBitsPerSample, wfx->nChannels,
|
wfx->nSamplesPerSec, wfx->wBitsPerSample, wfx->nChannels,
|
||||||
get_format_str(wfx->wFormatTag));
|
get_format_str(wfx->wFormatTag));
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
|
||||||
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetCaps() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetCaps() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Caps: size = %ld flags=0x%08lx buffer size=%ld\n",
|
trace(" Caps: size = %d flags=0x%08x buffer size=%d\n",
|
||||||
dscbcaps.dwSize,dscbcaps.dwFlags,dscbcaps.dwBufferBytes);
|
dscbcaps.dwSize,dscbcaps.dwFlags,dscbcaps.dwBufferBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,14 +369,14 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
|
||||||
size=0;
|
size=0;
|
||||||
rc=IDirectSoundCaptureBuffer_GetFormat(dscbo,NULL,0,&size);
|
rc=IDirectSoundCaptureBuffer_GetFormat(dscbo,NULL,0,&size);
|
||||||
ok(rc==DS_OK && size!=0,"IDirectSoundCaptureBuffer_GetFormat() should "
|
ok(rc==DS_OK && size!=0,"IDirectSoundCaptureBuffer_GetFormat() should "
|
||||||
"have returned the needed size: rc=%s, size=%ld\n",
|
"have returned the needed size: rc=%s, size=%d\n",
|
||||||
DXGetErrorString8(rc),size);
|
DXGetErrorString8(rc),size);
|
||||||
|
|
||||||
rc=IDirectSoundCaptureBuffer_GetFormat(dscbo,&wfx,sizeof(wfx),NULL);
|
rc=IDirectSoundCaptureBuffer_GetFormat(dscbo,&wfx,sizeof(wfx),NULL);
|
||||||
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetFormat() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Format: tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace(" Format: tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,7 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
|
||||||
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetStatus() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetStatus() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Status=0x%04lx\n",status);
|
trace(" Status=0x%04x\n",status);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZeroMemory(&state, sizeof(state));
|
ZeroMemory(&state, sizeof(state));
|
||||||
|
@ -439,7 +439,7 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
|
||||||
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetStatus() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundCaptureBuffer_GetStatus() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
ok(status==(DSCBSTATUS_CAPTURING|DSCBSTATUS_LOOPING),
|
ok(status==(DSCBSTATUS_CAPTURING|DSCBSTATUS_LOOPING),
|
||||||
"GetStatus: bad status: %lx\n",status);
|
"GetStatus: bad status: %x\n",status);
|
||||||
if (rc!=DS_OK)
|
if (rc!=DS_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -447,10 +447,10 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
|
||||||
for (i = 0; i < (NOTIFICATIONS * 2); i++) {
|
for (i = 0; i < (NOTIFICATIONS * 2); i++) {
|
||||||
rc=WaitForMultipleObjects(NOTIFICATIONS,state.event,FALSE,3000);
|
rc=WaitForMultipleObjects(NOTIFICATIONS,state.event,FALSE,3000);
|
||||||
ok(rc==(WAIT_OBJECT_0+(i%NOTIFICATIONS)),
|
ok(rc==(WAIT_OBJECT_0+(i%NOTIFICATIONS)),
|
||||||
"WaitForMultipleObjects failed: 0x%lx\n",rc);
|
"WaitForMultipleObjects failed: 0x%x\n",rc);
|
||||||
if (rc!=(WAIT_OBJECT_0+(i%NOTIFICATIONS))) {
|
if (rc!=(WAIT_OBJECT_0+(i%NOTIFICATIONS))) {
|
||||||
ok((rc==WAIT_TIMEOUT)||(rc==WAIT_FAILED),
|
ok((rc==WAIT_TIMEOUT)||(rc==WAIT_FAILED),
|
||||||
"Wrong notification: should be %d, got %ld\n",
|
"Wrong notification: should be %d, got %d\n",
|
||||||
i%NOTIFICATIONS,rc-WAIT_OBJECT_0);
|
i%NOTIFICATIONS,rc-WAIT_OBJECT_0);
|
||||||
}
|
}
|
||||||
if (!capture_buffer_service(&state))
|
if (!capture_buffer_service(&state))
|
||||||
|
@ -512,7 +512,7 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
|
||||||
ok(rc==DS_OK,"IDirectSoundCapture_GetCaps() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundCapture_GetCaps() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Caps: size=%ld flags=0x%08lx formats=%05lx channels=%ld\n",
|
trace(" Caps: size=%d flags=0x%08x formats=%05x channels=%d\n",
|
||||||
dsccaps.dwSize,dsccaps.dwFlags,dsccaps.dwFormats,
|
dsccaps.dwSize,dsccaps.dwFlags,dsccaps.dwFormats,
|
||||||
dsccaps.dwChannels);
|
dsccaps.dwChannels);
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,7 +225,7 @@ static int buffer_service(play_state_t* state)
|
||||||
state->played+=play_pos-last_play_pos;
|
state->played+=play_pos-last_play_pos;
|
||||||
|
|
||||||
if (winetest_debug > 1)
|
if (winetest_debug > 1)
|
||||||
trace("buf size=%ld last_play_pos=%ld play_pos=%ld played=%ld / %ld\n",
|
trace("buf size=%d last_play_pos=%d play_pos=%d played=%d / %d\n",
|
||||||
state->buffer_size,last_play_pos,play_pos,state->played,
|
state->buffer_size,last_play_pos,play_pos,state->played,
|
||||||
state->wave_len);
|
state->wave_len);
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ static int buffer_service(play_state_t* state)
|
||||||
buf_free=state->buffer_size-state->offset+play_pos;
|
buf_free=state->buffer_size-state->offset+play_pos;
|
||||||
|
|
||||||
if (winetest_debug > 1)
|
if (winetest_debug > 1)
|
||||||
trace("offset=%ld free=%ld written=%ld / %ld\n",
|
trace("offset=%d free=%d written=%d / %d\n",
|
||||||
state->offset,buf_free,state->written,state->wave_len);
|
state->offset,buf_free,state->written,state->wave_len);
|
||||||
if (buf_free==0)
|
if (buf_free==0)
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -254,14 +254,14 @@ static int buffer_service(play_state_t* state)
|
||||||
goto STOP;
|
goto STOP;
|
||||||
buf_free-=w;
|
buf_free-=w;
|
||||||
if (state->written==state->wave_len && winetest_debug > 1)
|
if (state->written==state->wave_len && winetest_debug > 1)
|
||||||
trace("last sound byte at %ld\n",
|
trace("last sound byte at %d\n",
|
||||||
(state->written % state->buffer_size));
|
(state->written % state->buffer_size));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf_free>0) {
|
if (buf_free>0) {
|
||||||
/* Fill with silence */
|
/* Fill with silence */
|
||||||
if (winetest_debug > 1)
|
if (winetest_debug > 1)
|
||||||
trace("writing %ld bytes of silence\n",buf_free);
|
trace("writing %d bytes of silence\n",buf_free);
|
||||||
if (buffer_silence(state,buf_free)==-1)
|
if (buffer_silence(state,buf_free)==-1)
|
||||||
goto STOP;
|
goto STOP;
|
||||||
}
|
}
|
||||||
|
@ -315,7 +315,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Caps: flags=0x%08lx size=%ld\n",dsbcaps.dwFlags,
|
trace(" Caps: flags=0x%08x size=%d\n",dsbcaps.dwFlags,
|
||||||
dsbcaps.dwBufferBytes);
|
dsbcaps.dwBufferBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -323,13 +323,13 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
size=0;
|
size=0;
|
||||||
rc=IDirectSoundBuffer_GetFormat(*dsbo,NULL,0,&size);
|
rc=IDirectSoundBuffer_GetFormat(*dsbo,NULL,0,&size);
|
||||||
ok(rc==DS_OK && size!=0,"IDirectSoundBuffer_GetFormat() should have "
|
ok(rc==DS_OK && size!=0,"IDirectSoundBuffer_GetFormat() should have "
|
||||||
"returned the needed size: rc=%s size=%ld\n",DXGetErrorString8(rc),size);
|
"returned the needed size: rc=%s size=%d\n",DXGetErrorString8(rc),size);
|
||||||
|
|
||||||
rc=IDirectSoundBuffer_GetFormat(*dsbo,&wfx,sizeof(wfx),NULL);
|
rc=IDirectSoundBuffer_GetFormat(*dsbo,&wfx,sizeof(wfx),NULL);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetFormat() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Format: %s tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace(" Format: %s tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
is_primary ? "Primary" : "Secondary",
|
is_primary ? "Primary" : "Secondary",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
|
@ -348,7 +348,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
if (rc==DS_OK) {
|
if (rc==DS_OK) {
|
||||||
DWORD f = set_frequency?frequency:wfx.nSamplesPerSec;
|
DWORD f = set_frequency?frequency:wfx.nSamplesPerSec;
|
||||||
ok(freq==f,"The frequency returned by GetFrequency "
|
ok(freq==f,"The frequency returned by GetFrequency "
|
||||||
"%ld does not match the format %ld\n",freq,f);
|
"%d does not match the format %d\n",freq,f);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DSOUND: Error: Invalid status pointer */
|
/* DSOUND: Error: Invalid status pointer */
|
||||||
|
@ -359,7 +359,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
rc=IDirectSoundBuffer_GetStatus(*dsbo,&status);
|
rc=IDirectSoundBuffer_GetStatus(*dsbo,&status);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
ok(status==0,"status=0x%lx instead of 0\n",status);
|
ok(status==0,"status=0x%x instead of 0\n",status);
|
||||||
|
|
||||||
if (is_primary) {
|
if (is_primary) {
|
||||||
DSBCAPS new_dsbcaps;
|
DSBCAPS new_dsbcaps;
|
||||||
|
@ -393,10 +393,10 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
||||||
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
||||||
wfx.nChannels!=wfx2.nChannels)) {
|
wfx.nChannels!=wfx2.nChannels)) {
|
||||||
trace("Requested format tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace("Requested format tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
||||||
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
||||||
trace("Got tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace("Got tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
}
|
}
|
||||||
|
@ -407,20 +407,20 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" new Caps: flags=0x%08lx size=%ld\n",new_dsbcaps.dwFlags,
|
trace(" new Caps: flags=0x%08x size=%d\n",new_dsbcaps.dwFlags,
|
||||||
new_dsbcaps.dwBufferBytes);
|
new_dsbcaps.dwBufferBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for primary buffer size change */
|
/* Check for primary buffer size change */
|
||||||
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
||||||
" buffer size changed after SetFormat() - "
|
" buffer size changed after SetFormat() - "
|
||||||
"previous size was %lu, current size is %lu\n",
|
"previous size was %u, current size is %u\n",
|
||||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||||
|
|
||||||
/* Check for primary buffer flags change */
|
/* Check for primary buffer flags change */
|
||||||
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
||||||
" flags changed after SetFormat() - "
|
" flags changed after SetFormat() - "
|
||||||
"previous flags were %08lx, current flags are %08lx\n",
|
"previous flags were %08x, current flags are %08x\n",
|
||||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||||
|
|
||||||
/* Set the CooperativeLevel back to normal */
|
/* Set the CooperativeLevel back to normal */
|
||||||
|
@ -441,12 +441,12 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
|
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
if (set_frequency)
|
if (set_frequency)
|
||||||
trace(" Playing %g second 440Hz tone at %ldx%dx%d with a "
|
trace(" Playing %g second 440Hz tone at %dx%dx%d with a "
|
||||||
"frequency of %ld (%ldHz)\n", duration,
|
"frequency of %d (%dHz)\n", duration,
|
||||||
wfx.nSamplesPerSec, wfx.wBitsPerSample, wfx.nChannels,
|
wfx.nSamplesPerSec, wfx.wBitsPerSample, wfx.nChannels,
|
||||||
frequency, (440 * frequency) / wfx.nSamplesPerSec);
|
frequency, (440 * frequency) / wfx.nSamplesPerSec);
|
||||||
else
|
else
|
||||||
trace(" Playing %g second 440Hz tone at %ldx%dx%d\n", duration,
|
trace(" Playing %g second 440Hz tone at %dx%dx%d\n", duration,
|
||||||
wfx.nSamplesPerSec, wfx.wBitsPerSample, wfx.nChannels);
|
wfx.nSamplesPerSec, wfx.wBitsPerSample, wfx.nChannels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -594,7 +594,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
ok(status==(DSBSTATUS_PLAYING|DSBSTATUS_LOOPING),
|
ok(status==(DSBSTATUS_PLAYING|DSBSTATUS_LOOPING),
|
||||||
"GetStatus: bad status: %lx\n",status);
|
"GetStatus: bad status: %x\n",status);
|
||||||
|
|
||||||
if (listener) {
|
if (listener) {
|
||||||
ZeroMemory(&listener_param,sizeof(listener_param));
|
ZeroMemory(&listener_param,sizeof(listener_param));
|
||||||
|
@ -655,7 +655,7 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
/* Check the sound duration was within 10% of the expected value */
|
/* Check the sound duration was within 10% of the expected value */
|
||||||
now=GetTickCount();
|
now=GetTickCount();
|
||||||
ok(fabs(1000*duration-now+start_time)<=100*duration,
|
ok(fabs(1000*duration-now+start_time)<=100*duration,
|
||||||
"The sound played for %ld ms instead of %g ms\n",
|
"The sound played for %d ms instead of %g ms\n",
|
||||||
now-start_time,1000*duration);
|
now-start_time,1000*duration);
|
||||||
|
|
||||||
free(state.wave);
|
free(state.wave);
|
||||||
|
@ -783,8 +783,8 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
|
||||||
wfx.nBlockAlign);
|
wfx.nBlockAlign);
|
||||||
bufdesc.lpwfxFormat=&wfx;
|
bufdesc.lpwfxFormat=&wfx;
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a %s%ssecondary buffer %s%s%s%sat %ldx%dx%d "
|
trace(" Testing a %s%ssecondary buffer %s%s%s%sat %dx%dx%d "
|
||||||
"with a primary buffer at %ldx%dx%d\n",
|
"with a primary buffer at %dx%dx%d\n",
|
||||||
has_3dbuffer?"3D ":"",
|
has_3dbuffer?"3D ":"",
|
||||||
has_duplicate?"duplicated ":"",
|
has_duplicate?"duplicated ":"",
|
||||||
listener!=NULL||move_sound?"with ":"",
|
listener!=NULL||move_sound?"with ":"",
|
||||||
|
@ -797,7 +797,7 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
|
||||||
}
|
}
|
||||||
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
ok(rc==DS_OK && secondary!=NULL,"IDirectSound_CreateSoundBuffer() "
|
ok(rc==DS_OK && secondary!=NULL,"IDirectSound_CreateSoundBuffer() "
|
||||||
"failed to create a %s%ssecondary buffer %s%s%s%sat %ldx%dx%d (%s): %s\n",
|
"failed to create a %s%ssecondary buffer %s%s%s%sat %dx%dx%d (%s): %s\n",
|
||||||
has_3dbuffer?"3D ":"", has_duplicate?"duplicated ":"",
|
has_3dbuffer?"3D ":"", has_duplicate?"duplicated ":"",
|
||||||
listener!=NULL||move_sound?"with ":"", move_listener?"moving ":"",
|
listener!=NULL||move_sound?"with ":"", move_listener?"moving ":"",
|
||||||
listener!=NULL?"listener ":"",
|
listener!=NULL?"listener ":"",
|
||||||
|
@ -813,11 +813,11 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
|
||||||
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetVolume(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetVolume(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(vol==0,"wrong volume for a new secondary buffer: %ld\n",vol);
|
ok(vol==0,"wrong volume for a new secondary buffer: %d\n",vol);
|
||||||
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(pan==0,"wrong pan for a new secondary buffer: %ld\n",pan);
|
ok(pan==0,"wrong pan for a new secondary buffer: %d\n",pan);
|
||||||
|
|
||||||
/* Check that changing the secondary buffer's volume and pan
|
/* Check that changing the secondary buffer's volume and pan
|
||||||
* does not impact the primary buffer's volume and pan
|
* does not impact the primary buffer's volume and pan
|
||||||
|
@ -835,7 +835,7 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
|
||||||
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(vol==-1000,"secondary: wrong volume %ld instead of -1000\n",
|
ok(vol==-1000,"secondary: wrong volume %d instead of -1000\n",
|
||||||
vol);
|
vol);
|
||||||
rc=IDirectSoundBuffer_SetPan(secondary,-1000);
|
rc=IDirectSoundBuffer_SetPan(secondary,-1000);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
||||||
|
@ -843,18 +843,18 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
|
||||||
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(pan==-1000,"secondary: wrong pan %ld instead of -1000\n",
|
ok(pan==-1000,"secondary: wrong pan %d instead of -1000\n",
|
||||||
pan);
|
pan);
|
||||||
|
|
||||||
rc=IDirectSoundBuffer_GetVolume(primary,&vol);
|
rc=IDirectSoundBuffer_GetVolume(primary,&vol);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetVolume(primary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetVolume(primary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(vol==refvol,"The primary volume changed from %ld to %ld\n",
|
ok(vol==refvol,"The primary volume changed from %d to %d\n",
|
||||||
refvol,vol);
|
refvol,vol);
|
||||||
rc=IDirectSoundBuffer_GetPan(primary,&pan);
|
rc=IDirectSoundBuffer_GetPan(primary,&pan);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(primary) failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(primary) failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
ok(pan==refpan,"The primary pan changed from %ld to %ld\n",
|
ok(pan==refpan,"The primary pan changed from %d to %d\n",
|
||||||
refpan,pan);
|
refpan,pan);
|
||||||
|
|
||||||
rc=IDirectSoundBuffer_SetVolume(secondary,0);
|
rc=IDirectSoundBuffer_SetVolume(secondary,0);
|
||||||
|
|
|
@ -128,7 +128,7 @@ static int buffer_service8(play_state_t* state)
|
||||||
state->played+=play_pos-last_play_pos;
|
state->played+=play_pos-last_play_pos;
|
||||||
|
|
||||||
if (winetest_debug > 1)
|
if (winetest_debug > 1)
|
||||||
trace("buf size=%ld last_play_pos=%ld play_pos=%ld played=%ld / %ld\n",
|
trace("buf size=%d last_play_pos=%d play_pos=%d played=%d / %d\n",
|
||||||
state->buffer_size,last_play_pos,play_pos,state->played,
|
state->buffer_size,last_play_pos,play_pos,state->played,
|
||||||
state->wave_len);
|
state->wave_len);
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ static int buffer_service8(play_state_t* state)
|
||||||
buf_free=state->buffer_size-state->offset+play_pos;
|
buf_free=state->buffer_size-state->offset+play_pos;
|
||||||
|
|
||||||
if (winetest_debug > 1)
|
if (winetest_debug > 1)
|
||||||
trace("offset=%ld free=%ld written=%ld / %ld\n",
|
trace("offset=%d free=%d written=%d / %d\n",
|
||||||
state->offset,buf_free,state->written,state->wave_len);
|
state->offset,buf_free,state->written,state->wave_len);
|
||||||
if (buf_free==0)
|
if (buf_free==0)
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -157,14 +157,14 @@ static int buffer_service8(play_state_t* state)
|
||||||
goto STOP;
|
goto STOP;
|
||||||
buf_free-=w;
|
buf_free-=w;
|
||||||
if (state->written==state->wave_len && winetest_debug > 1)
|
if (state->written==state->wave_len && winetest_debug > 1)
|
||||||
trace("last sound byte at %ld\n",
|
trace("last sound byte at %d\n",
|
||||||
(state->written % state->buffer_size));
|
(state->written % state->buffer_size));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf_free>0) {
|
if (buf_free>0) {
|
||||||
/* Fill with silence */
|
/* Fill with silence */
|
||||||
if (winetest_debug > 1)
|
if (winetest_debug > 1)
|
||||||
trace("writing %ld bytes of silence\n",buf_free);
|
trace("writing %d bytes of silence\n",buf_free);
|
||||||
if (buffer_silence8(state,buf_free)==-1)
|
if (buffer_silence8(state,buf_free)==-1)
|
||||||
goto STOP;
|
goto STOP;
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Caps: flags=0x%08lx size=%ld\n",dsbcaps.dwFlags,
|
trace(" Caps: flags=0x%08x size=%d\n",dsbcaps.dwFlags,
|
||||||
dsbcaps.dwBufferBytes);
|
dsbcaps.dwBufferBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,13 +216,13 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
size=0;
|
size=0;
|
||||||
rc=IDirectSoundBuffer_GetFormat(*dsbo,NULL,0,&size);
|
rc=IDirectSoundBuffer_GetFormat(*dsbo,NULL,0,&size);
|
||||||
ok(rc==DS_OK && size!=0,"IDirectSoundBuffer_GetFormat() should have "
|
ok(rc==DS_OK && size!=0,"IDirectSoundBuffer_GetFormat() should have "
|
||||||
"returned the needed size: rc=%s size=%ld\n",DXGetErrorString8(rc),size);
|
"returned the needed size: rc=%s size=%d\n",DXGetErrorString8(rc),size);
|
||||||
|
|
||||||
rc=IDirectSoundBuffer_GetFormat(*dsbo,&wfx,sizeof(wfx),NULL);
|
rc=IDirectSoundBuffer_GetFormat(*dsbo,&wfx,sizeof(wfx),NULL);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetFormat() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetFormat() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" Format: %s tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace(" Format: %s tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
is_primary ? "Primary" : "Secondary",
|
is_primary ? "Primary" : "Secondary",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
|
@ -240,7 +240,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
"IDirectSoundBuffer_GetFrequency() failed: %s\n",DXGetErrorString8(rc));
|
"IDirectSoundBuffer_GetFrequency() failed: %s\n",DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK) {
|
if (rc==DS_OK) {
|
||||||
ok(freq==wfx.nSamplesPerSec,"The frequency returned by GetFrequency "
|
ok(freq==wfx.nSamplesPerSec,"The frequency returned by GetFrequency "
|
||||||
"%ld does not match the format %ld\n",freq,wfx.nSamplesPerSec);
|
"%d does not match the format %d\n",freq,wfx.nSamplesPerSec);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DSOUND: Error: Invalid status pointer */
|
/* DSOUND: Error: Invalid status pointer */
|
||||||
|
@ -251,7 +251,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
rc=IDirectSoundBuffer_GetStatus(*dsbo,&status);
|
rc=IDirectSoundBuffer_GetStatus(*dsbo,&status);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
ok(status==0,"status=0x%lx instead of 0\n",status);
|
ok(status==0,"status=0x%x instead of 0\n",status);
|
||||||
|
|
||||||
if (is_primary) {
|
if (is_primary) {
|
||||||
DSBCAPS new_dsbcaps;
|
DSBCAPS new_dsbcaps;
|
||||||
|
@ -285,10 +285,10 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
||||||
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
||||||
wfx.nChannels!=wfx2.nChannels)) {
|
wfx.nChannels!=wfx2.nChannels)) {
|
||||||
trace("Requested format tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace("Requested format tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
||||||
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
||||||
trace("Got tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace("Got tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
}
|
}
|
||||||
|
@ -299,20 +299,20 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetCaps() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && winetest_debug > 1) {
|
if (rc==DS_OK && winetest_debug > 1) {
|
||||||
trace(" new Caps: flags=0x%08lx size=%ld\n",new_dsbcaps.dwFlags,
|
trace(" new Caps: flags=0x%08x size=%d\n",new_dsbcaps.dwFlags,
|
||||||
new_dsbcaps.dwBufferBytes);
|
new_dsbcaps.dwBufferBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for primary buffer size change */
|
/* Check for primary buffer size change */
|
||||||
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
||||||
" buffer size changed after SetFormat() - "
|
" buffer size changed after SetFormat() - "
|
||||||
"previous size was %lu, current size is %lu\n",
|
"previous size was %u, current size is %u\n",
|
||||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||||
|
|
||||||
/* Check for primary buffer flags change */
|
/* Check for primary buffer flags change */
|
||||||
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
||||||
" flags changed after SetFormat() - "
|
" flags changed after SetFormat() - "
|
||||||
"previous flags were %08lx, current flags are %08lx\n",
|
"previous flags were %08x, current flags are %08x\n",
|
||||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||||
|
|
||||||
/* Set the CooperativeLevel back to normal */
|
/* Set the CooperativeLevel back to normal */
|
||||||
|
@ -332,7 +332,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
DWORD length1;
|
DWORD length1;
|
||||||
|
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Playing %g second 440Hz tone at %ldx%dx%d\n", duration,
|
trace(" Playing %g second 440Hz tone at %dx%dx%d\n", duration,
|
||||||
wfx.nSamplesPerSec, wfx.wBitsPerSample,wfx.nChannels);
|
wfx.nSamplesPerSec, wfx.wBitsPerSample,wfx.nChannels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -477,7 +477,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetStatus() failed: %s\n",
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
ok(status==(DSBSTATUS_PLAYING|DSBSTATUS_LOOPING),
|
ok(status==(DSBSTATUS_PLAYING|DSBSTATUS_LOOPING),
|
||||||
"GetStatus: bad status: %lx\n",status);
|
"GetStatus: bad status: %x\n",status);
|
||||||
|
|
||||||
if (listener) {
|
if (listener) {
|
||||||
ZeroMemory(&listener_param,sizeof(listener_param));
|
ZeroMemory(&listener_param,sizeof(listener_param));
|
||||||
|
@ -537,7 +537,7 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
||||||
/* Check the sound duration was within 10% of the expected value */
|
/* Check the sound duration was within 10% of the expected value */
|
||||||
now=GetTickCount();
|
now=GetTickCount();
|
||||||
ok(fabs(1000*duration-now+start_time)<=100*duration,
|
ok(fabs(1000*duration-now+start_time)<=100*duration,
|
||||||
"The sound played for %ld ms instead of %g ms\n",
|
"The sound played for %d ms instead of %g ms\n",
|
||||||
now-start_time,1000*duration);
|
now-start_time,1000*duration);
|
||||||
|
|
||||||
free(state.wave);
|
free(state.wave);
|
||||||
|
@ -668,8 +668,8 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a %s%ssecondary buffer %s%s%s%sat %ldx%dx%d "
|
trace(" Testing a %s%ssecondary buffer %s%s%s%sat %dx%dx%d "
|
||||||
"with a primary buffer at %ldx%dx%d\n",
|
"with a primary buffer at %dx%dx%d\n",
|
||||||
has_3dbuffer?"3D ":"",
|
has_3dbuffer?"3D ":"",
|
||||||
has_duplicate?"duplicated ":"",
|
has_duplicate?"duplicated ":"",
|
||||||
listener!=NULL||move_sound?"with ":"",
|
listener!=NULL||move_sound?"with ":"",
|
||||||
|
@ -682,7 +682,7 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
|
||||||
}
|
}
|
||||||
rc=IDirectSound8_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound8_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
ok(rc==DS_OK && secondary!=NULL,"IDirectSound8_CreateSoundBuffer() "
|
ok(rc==DS_OK && secondary!=NULL,"IDirectSound8_CreateSoundBuffer() "
|
||||||
"failed to create a %s%ssecondary buffer %s%s%s%sat %ldx%dx%d (%s): %s\n",
|
"failed to create a %s%ssecondary buffer %s%s%s%sat %dx%dx%d (%s): %s\n",
|
||||||
has_3dbuffer?"3D ":"", has_duplicate?"duplicated ":"",
|
has_3dbuffer?"3D ":"", has_duplicate?"duplicated ":"",
|
||||||
listener!=NULL||move_sound?"with ":"", move_listener?"moving ":"",
|
listener!=NULL||move_sound?"with ":"", move_listener?"moving ":"",
|
||||||
listener!=NULL?"listener ":"",
|
listener!=NULL?"listener ":"",
|
||||||
|
@ -698,11 +698,11 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
|
||||||
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetVolume(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetVolume(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(vol==0,"wrong volume for a new secondary buffer: %ld\n",vol);
|
ok(vol==0,"wrong volume for a new secondary buffer: %d\n",vol);
|
||||||
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(pan==0,"wrong pan for a new secondary buffer: %ld\n",pan);
|
ok(pan==0,"wrong pan for a new secondary buffer: %d\n",pan);
|
||||||
|
|
||||||
/* Check that changing the secondary buffer's volume and pan
|
/* Check that changing the secondary buffer's volume and pan
|
||||||
* does not impact the primary buffer's volume and pan
|
* does not impact the primary buffer's volume and pan
|
||||||
|
@ -720,7 +720,7 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
|
||||||
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
rc=IDirectSoundBuffer_GetVolume(secondary,&vol);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetVolume(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(vol==-1000,"secondary: wrong volume %ld instead of -1000\n",
|
ok(vol==-1000,"secondary: wrong volume %d instead of -1000\n",
|
||||||
vol);
|
vol);
|
||||||
rc=IDirectSoundBuffer_SetPan(secondary,-1000);
|
rc=IDirectSoundBuffer_SetPan(secondary,-1000);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
||||||
|
@ -728,18 +728,18 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
|
||||||
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
rc=IDirectSoundBuffer_GetPan(secondary,&pan);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_SetPan(secondary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(pan==-1000,"secondary: wrong pan %ld instead of -1000\n",
|
ok(pan==-1000,"secondary: wrong pan %d instead of -1000\n",
|
||||||
pan);
|
pan);
|
||||||
|
|
||||||
rc=IDirectSoundBuffer_GetVolume(primary,&vol);
|
rc=IDirectSoundBuffer_GetVolume(primary,&vol);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_`GetVolume(primary) failed: i"
|
ok(rc==DS_OK,"IDirectSoundBuffer_`GetVolume(primary) failed: i"
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(vol==refvol,"The primary volume changed from %ld to %ld\n",
|
ok(vol==refvol,"The primary volume changed from %d to %d\n",
|
||||||
refvol,vol);
|
refvol,vol);
|
||||||
rc=IDirectSoundBuffer_GetPan(primary,&pan);
|
rc=IDirectSoundBuffer_GetPan(primary,&pan);
|
||||||
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(primary) failed: "
|
ok(rc==DS_OK,"IDirectSoundBuffer_GetPan(primary) failed: "
|
||||||
"%s\n",DXGetErrorString8(rc));
|
"%s\n",DXGetErrorString8(rc));
|
||||||
ok(pan==refpan,"The primary pan changed from %ld to %ld\n",
|
ok(pan==refpan,"The primary pan changed from %d to %d\n",
|
||||||
refpan,pan);
|
refpan,pan);
|
||||||
|
|
||||||
rc=IDirectSoundBuffer_SetVolume(secondary,0);
|
rc=IDirectSoundBuffer_SetVolume(secondary,0);
|
||||||
|
|
|
@ -159,7 +159,7 @@ static void IDirectSound_test(LPDIRECTSOUND dso, BOOL initialized,
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && speaker_config!=new_speaker_config)
|
if (rc==DS_OK && speaker_config!=new_speaker_config)
|
||||||
trace("IDirectSound_GetSpeakerConfig() failed to set speaker "
|
trace("IDirectSound_GetSpeakerConfig() failed to set speaker "
|
||||||
"config: expected 0x%08lx, got 0x%08lx\n",
|
"config: expected 0x%08x, got 0x%08x\n",
|
||||||
speaker_config,new_speaker_config);
|
speaker_config,new_speaker_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -472,7 +472,7 @@ static HRESULT test_primary(LPGUID lpGuid)
|
||||||
trace("Playing a 5 seconds reference tone at the current "
|
trace("Playing a 5 seconds reference tone at the current "
|
||||||
"volume.\n");
|
"volume.\n");
|
||||||
if (rc==DS_OK)
|
if (rc==DS_OK)
|
||||||
trace("(the current volume is %ld according to DirectSound)\n",
|
trace("(the current volume is %d according to DirectSound)\n",
|
||||||
vol);
|
vol);
|
||||||
trace("All subsequent tones should be identical to this one.\n");
|
trace("All subsequent tones should be identical to this one.\n");
|
||||||
trace("Listen for stutter, changes in pitch, volume, etc.\n");
|
trace("Listen for stutter, changes in pitch, volume, etc.\n");
|
||||||
|
@ -576,11 +576,11 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
|
||||||
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
||||||
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
||||||
wfx.nChannels!=wfx2.nChannels)) {
|
wfx.nChannels!=wfx2.nChannels)) {
|
||||||
trace("Requested primary format tag=0x%04x %ldx%dx%d "
|
trace("Requested primary format tag=0x%04x %dx%dx%d "
|
||||||
"avg.B/s=%ld align=%d\n",
|
"avg.B/s=%d align=%d\n",
|
||||||
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
||||||
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
||||||
trace("Got tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace("Got tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
}
|
}
|
||||||
|
@ -601,8 +601,8 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
|
||||||
wfx.nBlockAlign);
|
wfx.nBlockAlign);
|
||||||
bufdesc.lpwfxFormat=&wfx2;
|
bufdesc.lpwfxFormat=&wfx2;
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a primary buffer at %ldx%dx%d with a "
|
trace(" Testing a primary buffer at %dx%dx%d with a "
|
||||||
"secondary buffer at %ldx%dx%d\n",
|
"secondary buffer at %dx%dx%d\n",
|
||||||
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
||||||
wfx2.nSamplesPerSec,wfx2.wBitsPerSample,wfx2.nChannels);
|
wfx2.nSamplesPerSec,wfx2.wBitsPerSample,wfx2.nChannels);
|
||||||
}
|
}
|
||||||
|
@ -714,8 +714,8 @@ static HRESULT test_secondary(LPGUID lpGuid)
|
||||||
wfx.nBlockAlign);
|
wfx.nBlockAlign);
|
||||||
bufdesc.lpwfxFormat=&wfx;
|
bufdesc.lpwfxFormat=&wfx;
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a secondary buffer at %ldx%dx%d "
|
trace(" Testing a secondary buffer at %dx%dx%d "
|
||||||
"with a primary buffer at %ldx%dx%d\n",
|
"with a primary buffer at %dx%dx%d\n",
|
||||||
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
||||||
wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels);
|
wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels);
|
||||||
}
|
}
|
||||||
|
@ -790,8 +790,8 @@ static HRESULT test_block_align(LPGUID lpGuid)
|
||||||
"returned: %s\n", DXGetErrorString8(rc));
|
"returned: %s\n", DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK)
|
if (rc==DS_OK)
|
||||||
ok(dsbcaps.dwBufferBytes==(wfx.nAvgBytesPerSec + wfx.nBlockAlign),
|
ok(dsbcaps.dwBufferBytes==(wfx.nAvgBytesPerSec + wfx.nBlockAlign),
|
||||||
"Buffer size not a multiple of nBlockAlign: requested %ld, "
|
"Buffer size not a multiple of nBlockAlign: requested %d, "
|
||||||
"got %ld, should be %ld\n", bufdesc.dwBufferBytes,
|
"got %d, should be %d\n", bufdesc.dwBufferBytes,
|
||||||
dsbcaps.dwBufferBytes, wfx.nAvgBytesPerSec + wfx.nBlockAlign);
|
dsbcaps.dwBufferBytes, wfx.nAvgBytesPerSec + wfx.nBlockAlign);
|
||||||
ref=IDirectSoundBuffer_Release(secondary);
|
ref=IDirectSoundBuffer_Release(secondary);
|
||||||
ok(ref==0,"IDirectSoundBuffer_Release() secondary has %d references, "
|
ok(ref==0,"IDirectSoundBuffer_Release() secondary has %d references, "
|
||||||
|
@ -874,8 +874,8 @@ static HRESULT test_frequency(LPGUID lpGuid)
|
||||||
BUFFER_LEN/1000,wfx.nBlockAlign);
|
BUFFER_LEN/1000,wfx.nBlockAlign);
|
||||||
bufdesc.lpwfxFormat=&wfx;
|
bufdesc.lpwfxFormat=&wfx;
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a secondary buffer at %ldx%dx%d "
|
trace(" Testing a secondary buffer at %dx%dx%d "
|
||||||
"with a primary buffer at %ldx%dx%d\n",
|
"with a primary buffer at %dx%dx%d\n",
|
||||||
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
||||||
wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels);
|
wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels);
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ static void IDirectSound8_test(LPDIRECTSOUND8 dso, BOOL initialized,
|
||||||
DXGetErrorString8(rc));
|
DXGetErrorString8(rc));
|
||||||
if (rc==DS_OK && speaker_config!=new_speaker_config)
|
if (rc==DS_OK && speaker_config!=new_speaker_config)
|
||||||
trace("IDirectSound8_GetSpeakerConfig() failed to set speaker "
|
trace("IDirectSound8_GetSpeakerConfig() failed to set speaker "
|
||||||
"config: expected 0x%08lx, got 0x%08lx\n",
|
"config: expected 0x%08x, got 0x%08x\n",
|
||||||
speaker_config,new_speaker_config);
|
speaker_config,new_speaker_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ static HRESULT test_primary8(LPGUID lpGuid)
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace("Playing a 5 seconds reference tone at the current volume.\n");
|
trace("Playing a 5 seconds reference tone at the current volume.\n");
|
||||||
if (rc==DS_OK)
|
if (rc==DS_OK)
|
||||||
trace("(the current volume is %ld according to DirectSound)\n",
|
trace("(the current volume is %d according to DirectSound)\n",
|
||||||
vol);
|
vol);
|
||||||
trace("All subsequent tones should be identical to this one.\n");
|
trace("All subsequent tones should be identical to this one.\n");
|
||||||
trace("Listen for stutter, changes in pitch, volume, etc.\n");
|
trace("Listen for stutter, changes in pitch, volume, etc.\n");
|
||||||
|
@ -608,11 +608,11 @@ static HRESULT test_primary_secondary8(LPGUID lpGuid)
|
||||||
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
wfx.nSamplesPerSec!=wfx2.nSamplesPerSec ||
|
||||||
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
wfx.wBitsPerSample!=wfx2.wBitsPerSample ||
|
||||||
wfx.nChannels!=wfx2.nChannels)) {
|
wfx.nChannels!=wfx2.nChannels)) {
|
||||||
trace("Requested primary format tag=0x%04x %ldx%dx%d "
|
trace("Requested primary format tag=0x%04x %dx%dx%d "
|
||||||
"avg.B/s=%ld align=%d\n",
|
"avg.B/s=%d align=%d\n",
|
||||||
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample,
|
||||||
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
wfx2.nChannels,wfx2.nAvgBytesPerSec,wfx2.nBlockAlign);
|
||||||
trace("Got tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d\n",
|
trace("Got tag=0x%04x %dx%dx%d avg.B/s=%d align=%d\n",
|
||||||
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample,
|
||||||
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign);
|
||||||
}
|
}
|
||||||
|
@ -633,8 +633,8 @@ static HRESULT test_primary_secondary8(LPGUID lpGuid)
|
||||||
wfx.nBlockAlign);
|
wfx.nBlockAlign);
|
||||||
bufdesc.lpwfxFormat=&wfx2;
|
bufdesc.lpwfxFormat=&wfx2;
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a primary buffer at %ldx%dx%d with a "
|
trace(" Testing a primary buffer at %dx%dx%d with a "
|
||||||
"secondary buffer at %ldx%dx%d\n",
|
"secondary buffer at %dx%dx%d\n",
|
||||||
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
||||||
wfx2.nSamplesPerSec,wfx2.wBitsPerSample,wfx2.nChannels);
|
wfx2.nSamplesPerSec,wfx2.wBitsPerSample,wfx2.nChannels);
|
||||||
}
|
}
|
||||||
|
@ -746,8 +746,8 @@ static HRESULT test_secondary8(LPGUID lpGuid)
|
||||||
wfx.nBlockAlign);
|
wfx.nBlockAlign);
|
||||||
bufdesc.lpwfxFormat=&wfx;
|
bufdesc.lpwfxFormat=&wfx;
|
||||||
if (winetest_interactive) {
|
if (winetest_interactive) {
|
||||||
trace(" Testing a secondary buffer at %ldx%dx%d "
|
trace(" Testing a secondary buffer at %dx%dx%d "
|
||||||
"with a primary buffer at %ldx%dx%d\n",
|
"with a primary buffer at %dx%dx%d\n",
|
||||||
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,
|
||||||
wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels);
|
wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels);
|
||||||
}
|
}
|
||||||
|
@ -829,7 +829,7 @@ const char * get_file_version(const char * file_name)
|
||||||
VS_FIXEDFILEINFO *pFixedVersionInfo;
|
VS_FIXEDFILEINFO *pFixedVersionInfo;
|
||||||
UINT len;
|
UINT len;
|
||||||
if (VerQueryValueA(data, backslash, (LPVOID *)&pFixedVersionInfo, &len)) {
|
if (VerQueryValueA(data, backslash, (LPVOID *)&pFixedVersionInfo, &len)) {
|
||||||
sprintf(version, "%ld.%ld.%ld.%ld",
|
sprintf(version, "%d.%d.%d.%d",
|
||||||
pFixedVersionInfo->dwFileVersionMS >> 16,
|
pFixedVersionInfo->dwFileVersionMS >> 16,
|
||||||
pFixedVersionInfo->dwFileVersionMS & 0xffff,
|
pFixedVersionInfo->dwFileVersionMS & 0xffff,
|
||||||
pFixedVersionInfo->dwFileVersionLS >> 16,
|
pFixedVersionInfo->dwFileVersionLS >> 16,
|
||||||
|
|
|
@ -124,7 +124,7 @@ static void IDirectSoundFullDuplex_tests(void)
|
||||||
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
|
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
|
||||||
(void**)&dsfdo);
|
(void**)&dsfdo);
|
||||||
ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG||rc==CLASS_E_CLASSNOTAVAILABLE,
|
ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG||rc==CLASS_E_CLASSNOTAVAILABLE,
|
||||||
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08lx)\n",
|
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08x)\n",
|
||||||
DXGetErrorString8(rc), rc);
|
DXGetErrorString8(rc), rc);
|
||||||
if (rc==REGDB_E_CLASSNOTREG) {
|
if (rc==REGDB_E_CLASSNOTREG) {
|
||||||
trace(" Class Not Registered\n");
|
trace(" Class Not Registered\n");
|
||||||
|
@ -141,7 +141,7 @@ static void IDirectSoundFullDuplex_tests(void)
|
||||||
rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL,
|
rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL,
|
||||||
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
|
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
|
||||||
(void**)&dsfdo);
|
(void**)&dsfdo);
|
||||||
ok(rc==S_OK,"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08lx)\n",
|
ok(rc==S_OK,"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08x)\n",
|
||||||
DXGetErrorString8(rc), rc);
|
DXGetErrorString8(rc), rc);
|
||||||
if (dsfdo)
|
if (dsfdo)
|
||||||
IDirectSoundFullDuplex_test(dsfdo, FALSE, &DSDEVID_DefaultCapture,
|
IDirectSoundFullDuplex_test(dsfdo, FALSE, &DSDEVID_DefaultCapture,
|
||||||
|
@ -152,7 +152,7 @@ static void IDirectSoundFullDuplex_tests(void)
|
||||||
rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL,
|
rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL,
|
||||||
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
|
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
|
||||||
(void**)&dsfdo);
|
(void**)&dsfdo);
|
||||||
ok(rc==S_OK,"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08lx)\n",
|
ok(rc==S_OK,"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08x)\n",
|
||||||
DXGetErrorString8(rc), rc);
|
DXGetErrorString8(rc), rc);
|
||||||
if (dsfdo)
|
if (dsfdo)
|
||||||
IDirectSoundFullDuplex_test(dsfdo, FALSE, &DSDEVID_DefaultVoiceCapture,
|
IDirectSoundFullDuplex_test(dsfdo, FALSE, &DSDEVID_DefaultVoiceCapture,
|
||||||
|
@ -165,7 +165,7 @@ static void IDirectSoundFullDuplex_tests(void)
|
||||||
(void**)&dsfdo);
|
(void**)&dsfdo);
|
||||||
ok(rc==E_NOINTERFACE,
|
ok(rc==E_NOINTERFACE,
|
||||||
"CoCreateInstance(CLSID_DirectSoundFullDuplex,CLSID_DirectSoundPrivate) "
|
"CoCreateInstance(CLSID_DirectSoundFullDuplex,CLSID_DirectSoundPrivate) "
|
||||||
"should have failed: %s (0x%08lx)\n",DXGetErrorString8(rc), rc);
|
"should have failed: %s (0x%08x)\n",DXGetErrorString8(rc), rc);
|
||||||
|
|
||||||
ZeroMemory(&wfex, sizeof(wfex));
|
ZeroMemory(&wfex, sizeof(wfex));
|
||||||
wfex.wFormatTag = WAVE_FORMAT_PCM;
|
wfex.wFormatTag = WAVE_FORMAT_PCM;
|
||||||
|
|
|
@ -83,7 +83,7 @@ BOOL CALLBACK callback(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA data,
|
||||||
trace(" Description: %s\n", data->Description);
|
trace(" Description: %s\n", data->Description);
|
||||||
trace(" Module: %s\n", data->Module);
|
trace(" Module: %s\n", data->Module);
|
||||||
trace(" Interface: %s\n", data->Interface);
|
trace(" Interface: %s\n", data->Interface);
|
||||||
trace(" WaveDeviceId: %ld\n", data->WaveDeviceId);
|
trace(" WaveDeviceId: %d\n", data->WaveDeviceId);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ BOOL CALLBACK callback1(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA data,
|
||||||
trace(" ModuleA: %s\n", data->ModuleA);
|
trace(" ModuleA: %s\n", data->ModuleA);
|
||||||
WideCharToMultiByte(CP_ACP, 0, data->ModuleW, -1, moduleA, sizeof(moduleA), NULL, NULL);
|
WideCharToMultiByte(CP_ACP, 0, data->ModuleW, -1, moduleA, sizeof(moduleA), NULL, NULL);
|
||||||
trace(" ModuleW: %s\n", moduleA);
|
trace(" ModuleW: %s\n", moduleA);
|
||||||
trace(" WaveDeviceId: %ld\n", data->WaveDeviceId);
|
trace(" WaveDeviceId: %d\n", data->WaveDeviceId);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ BOOL CALLBACK callbackA(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA data,
|
||||||
trace(" Description: %s\n", data->Description);
|
trace(" Description: %s\n", data->Description);
|
||||||
trace(" Module: %s\n", data->Module);
|
trace(" Module: %s\n", data->Module);
|
||||||
trace(" Interface: %s\n", data->Interface);
|
trace(" Interface: %s\n", data->Interface);
|
||||||
trace(" WaveDeviceId: %ld\n", data->WaveDeviceId);
|
trace(" WaveDeviceId: %d\n", data->WaveDeviceId);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -174,7 +174,7 @@ BOOL CALLBACK callbackW(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA data,
|
||||||
trace("\tDescription: %s\n", descriptionA);
|
trace("\tDescription: %s\n", descriptionA);
|
||||||
trace("\tModule: %s\n", moduleA);
|
trace("\tModule: %s\n", moduleA);
|
||||||
trace("\tInterface: %s\n", interfaceA);
|
trace("\tInterface: %s\n", interfaceA);
|
||||||
trace("\tWaveDeviceId: %ld\n", data->WaveDeviceId);
|
trace("\tWaveDeviceId: %d\n", data->WaveDeviceId);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -324,10 +324,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
||||||
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: "
|
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1 */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1 */
|
||||||
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
|
@ -345,10 +345,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
||||||
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1: "
|
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A */
|
||||||
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
|
@ -366,10 +366,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
||||||
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A: "
|
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W */
|
||||||
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
|
@ -387,10 +387,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
ok(!(support & KSPROPERTY_SUPPORT_SET),
|
||||||
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W: "
|
"Shouldn't be able to set DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
|
|
||||||
/* test generic DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING */
|
/* test generic DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING */
|
||||||
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
|
@ -403,10 +403,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET), "Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET), "Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: support = "
|
"DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING: support = "
|
||||||
"0x%lx\n",support);
|
"0x%x\n",support);
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A */
|
||||||
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
|
@ -419,10 +419,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET), "Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET), "Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A: support = "
|
"DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A: support = "
|
||||||
"0x%lx\n",support);
|
"0x%x\n",support);
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W */
|
||||||
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_QuerySupport(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
|
@ -435,10 +435,10 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET), "Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET), "Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W: support = "
|
"DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W: support = "
|
||||||
"0x%lx\n",support);
|
"0x%x\n",support);
|
||||||
|
|
||||||
/* test generic DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE */
|
/* test generic DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE */
|
||||||
trace("*** Testing DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE ***\n");
|
trace("*** Testing DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE ***\n");
|
||||||
|
@ -453,9 +453,9 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: support = 0x%lx\n",support);
|
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE: support = 0x%x\n",support);
|
||||||
|
|
||||||
if (support & KSPROPERTY_SUPPORT_GET) {
|
if (support & KSPROPERTY_SUPPORT_GET) {
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA data;
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA data;
|
||||||
|
@ -467,7 +467,7 @@ static void propset_private_tests(void)
|
||||||
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE,
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE,
|
||||||
NULL, 0, &data, sizeof(data), &bytes);
|
NULL, 0, &data, sizeof(data), &bytes);
|
||||||
ok(rc==DS_OK, "Couldn't enumerate: 0x%lx\n",rc);
|
ok(rc==DS_OK, "Couldn't enumerate: 0x%x\n",rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1 */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1 */
|
||||||
|
@ -483,9 +483,9 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1: support = 0x%lx\n",support);
|
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1: support = 0x%x\n",support);
|
||||||
|
|
||||||
if (support & KSPROPERTY_SUPPORT_GET) {
|
if (support & KSPROPERTY_SUPPORT_GET) {
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA data;
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA data;
|
||||||
|
@ -497,7 +497,7 @@ static void propset_private_tests(void)
|
||||||
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1,
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1,
|
||||||
NULL, 0, &data, sizeof(data), &bytes);
|
NULL, 0, &data, sizeof(data), &bytes);
|
||||||
ok(rc==DS_OK, "Couldn't enumerate: 0x%lx\n",rc);
|
ok(rc==DS_OK, "Couldn't enumerate: 0x%x\n",rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A */
|
||||||
|
@ -513,9 +513,9 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A: support = 0x%lx\n",support);
|
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A: support = 0x%x\n",support);
|
||||||
|
|
||||||
if (support & KSPROPERTY_SUPPORT_GET) {
|
if (support & KSPROPERTY_SUPPORT_GET) {
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA data;
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA data;
|
||||||
|
@ -527,7 +527,7 @@ static void propset_private_tests(void)
|
||||||
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A,
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A,
|
||||||
NULL, 0, &data, sizeof(data), &bytes);
|
NULL, 0, &data, sizeof(data), &bytes);
|
||||||
ok(rc==DS_OK, "Couldn't enumerate: 0x%lx\n",rc);
|
ok(rc==DS_OK, "Couldn't enumerate: 0x%x\n",rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* test DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W */
|
/* test DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W */
|
||||||
|
@ -543,9 +543,9 @@ static void propset_private_tests(void)
|
||||||
|
|
||||||
ok(support & KSPROPERTY_SUPPORT_GET,
|
ok(support & KSPROPERTY_SUPPORT_GET,
|
||||||
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W: "
|
"Couldn't get DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W: "
|
||||||
"support = 0x%lx\n",support);
|
"support = 0x%x\n",support);
|
||||||
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
ok(!(support & KSPROPERTY_SUPPORT_SET),"Shouldn't be able to set "
|
||||||
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W: support = 0x%lx\n",support);
|
"DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W: support = 0x%x\n",support);
|
||||||
|
|
||||||
if (support & KSPROPERTY_SUPPORT_GET) {
|
if (support & KSPROPERTY_SUPPORT_GET) {
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA data;
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA data;
|
||||||
|
@ -557,7 +557,7 @@ static void propset_private_tests(void)
|
||||||
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
rc = IKsPropertySet_Get(pps, &DSPROPSETID_DirectSoundDevice,
|
||||||
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W,
|
DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W,
|
||||||
NULL, 0, &data, sizeof(data), &bytes);
|
NULL, 0, &data, sizeof(data), &bytes);
|
||||||
ok(rc==DS_OK, "Couldn't enumerate: 0x%lx\n",rc);
|
ok(rc==DS_OK, "Couldn't enumerate: 0x%x\n",rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
@ -618,7 +618,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
|
||||||
bufdesc.dwFlags=DSBCAPS_CTRLDEFAULT|DSBCAPS_GETCURRENTPOSITION2;
|
bufdesc.dwFlags=DSBCAPS_CTRLDEFAULT|DSBCAPS_GETCURRENTPOSITION2;
|
||||||
bufdesc.dwBufferBytes=wfx.nAvgBytesPerSec;
|
bufdesc.dwBufferBytes=wfx.nAvgBytesPerSec;
|
||||||
bufdesc.lpwfxFormat=&wfx;
|
bufdesc.lpwfxFormat=&wfx;
|
||||||
trace(" Testing a secondary buffer at %ldx%dx%d\n",
|
trace(" Testing a secondary buffer at %dx%dx%d\n",
|
||||||
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels);
|
wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels);
|
||||||
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
ok(rc==DS_OK&&secondary!=NULL,"IDirectSound_CreateSoundBuffer() "
|
ok(rc==DS_OK&&secondary!=NULL,"IDirectSound_CreateSoundBuffer() "
|
||||||
|
|
Loading…
Reference in New Issue