Mercurial > sdl-ios-xcode
comparison src/audio/windx5/SDL_dx5audio.c @ 2051:c03f1446e897
Whoops, need a pointer to an LPDIRECTSOUNDBUFFER and not the
LPDIRECTSOUNDBUFFER itself.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 20 Oct 2006 00:15:18 +0000 |
parents | bbc89e09503f |
children | 866052b01ee5 |
comparison
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; |