mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-03-07 16:56:59 +01:00
audio: One more callbackspec fix (thanks, Simon!).
This commit is contained in:
parent
772407627b
commit
4073a6694f
@ -732,7 +732,7 @@ SDL_CaptureAudio(void *devicep)
|
|||||||
const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
|
const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
|
||||||
const int data_len = device->spec.size;
|
const int data_len = device->spec.size;
|
||||||
Uint8 *data;
|
Uint8 *data;
|
||||||
void *udata = device->spec.userdata;
|
void *udata = device->callbackspec.userdata;
|
||||||
SDL_AudioCallback callback = device->callbackspec.callback;
|
SDL_AudioCallback callback = device->callbackspec.callback;
|
||||||
|
|
||||||
SDL_assert(device->iscapture);
|
SDL_assert(device->iscapture);
|
||||||
|
Loading…
Reference in New Issue
Block a user