equal
deleted
inserted
replaced
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; |