src/audio/windx5/SDL_dx5audio.c
changeset 2051 c03f1446e897
parent 2050 bbc89e09503f
child 2060 866052b01ee5
equal deleted inserted replaced
2050:bbc89e09503f 2051:c03f1446e897
   327 */
   327 */
   328 static int
   328 static int
   329 CreateSecondary(_THIS, HWND focus, WAVEFORMATEX *wavefmt)
   329 CreateSecondary(_THIS, HWND focus, WAVEFORMATEX *wavefmt)
   330 {
   330 {
   331     LPDIRECTSOUND sndObj = this->hidden->sound;
   331     LPDIRECTSOUND sndObj = this->hidden->sound;
   332     LPDIRECTSOUNDBUFFER *sndbuf = this->hidden->mixbuf;
   332     LPDIRECTSOUNDBUFFER *sndbuf = &this->hidden->mixbuf;
   333     Uint32 chunksize = this->spec.size;
   333     Uint32 chunksize = this->spec.size;
   334     const int numchunks = 8;
   334     const int numchunks = 8;
   335     HRESULT result = DS_OK;
   335     HRESULT result = DS_OK;
   336     DSBUFFERDESC format;
   336     DSBUFFERDESC format;
   337     LPVOID pvAudioPtr1, pvAudioPtr2;
   337     LPVOID pvAudioPtr1, pvAudioPtr2;