[Commits] SDL: audio: One more callbackspec fix (thanks, Simon!).

libsdl.org revision control commits-owner at libsdl.org
Thu May 18 12:33:21 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/c923c6eac264
changeset: 11008:c923c6eac264
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Thu May 18 15:33:17 2017 -0400
description:
audio: One more callbackspec fix (thanks, Simon!).

diffstat:

 src/audio/SDL_audio.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e75416b7aba1 -r c923c6eac264 src/audio/SDL_audio.c
--- a/src/audio/SDL_audio.c	Tue May 16 17:48:57 2017 -0700
+++ b/src/audio/SDL_audio.c	Thu May 18 15:33:17 2017 -0400
@@ -732,7 +732,7 @@
     const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
     const int data_len = device->spec.size;
     Uint8 *data;
-    void *udata = device->spec.userdata;
+    void *udata = device->callbackspec.userdata;
     SDL_AudioCallback callback = device->callbackspec.callback;
 
     SDL_assert(device->iscapture);


More information about the commits mailing list