461{
467
469
471 WARN(
"failed priority check!\n");
473 }
474
475
477 WARN(
"invalid parameter: wfex==NULL!\n");
479 }
480 TRACE(
"(formattag=0x%04x,chans=%d,samplerate=%d,"
481 "bytespersec=%d,blockalign=%d,bitspersamp=%d,cbSize=%d)\n",
485
486
489
490 nSamplesPerSec =
device->pwfx->nSamplesPerSec;
492 chans =
device->pwfx->nChannels;
493
500 goto done;
501 }
502
505
506
508 {
513 }
514
517 WARN(
"IDsDriverBuffer_SetFormat failed\n");
518 if (!forced) {
521 }
522 goto done;
523 }
524
526 {
527
528
529
530
531
534
539 }
541 }
542
544 {
546
549 {
550 WARN(
"DSOUND_ReopenDevice failed: %08x\n",
err);
551 goto done;
552 }
555 WARN(
"DSOUND_PrimaryOpen failed\n");
556 goto done;
557 }
558
560 {
565 WARN(
"DSOUND_ReopenDevice(2) failed: %08x\n",
err);
567 WARN(
"DSOUND_PrimaryOpen(2) failed: %08x\n",
err);
568 }
569 }
570
576
577 if (nSamplesPerSec !=
device->pwfx->nSamplesPerSec ||
bpp !=
device->pwfx->wBitsPerSample || chans !=
device->pwfx->nChannels) {
579 for (
i = 0;
i <
device->nrofbuffers;
i++, dsb++) {
580
582
586 (*dsb)->primary_mixpos = 0;
587
589
590 }
591 }
592
593done:
596
597
600}
#define IDsDriverBuffer_SetFormat(p, a)
#define IDsDriverBuffer_Unlock(p, a, b, c, d)
#define IDsDriverBuffer_Lock(p, a, b, c, d, e, f, g)
#define DSBLOCK_ENTIREBUFFER
#define DSSCL_WRITEPRIMARY
#define DSERR_PRIOLEVELNEEDED
void DSOUND_MixToTemporary(const IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mixlen, BOOL inmixer) DECLSPEC_HIDDEN
void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct pcmwaveformat_tag PCMWAVEFORMAT
NTSYSAPI BOOLEAN NTAPI RtlAcquireResourceExclusive(_In_ PRTL_RESOURCE Resource, _In_ BOOLEAN Wait)
NTSYSAPI VOID NTAPI RtlReleaseResource(_In_ PRTL_RESOURCE Resource)
LPWAVEFORMATEX DSOUND_CopyFormat(LPCWAVEFORMATEX wfex)