浏览代码

audio: One more callbackspec fix (thanks, Simon!).

Ryan C. Gordon 8 年之前
父节点
当前提交
4073a6694f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/audio/SDL_audio.c

+ 1 - 1
src/audio/SDL_audio.c

@@ -732,7 +732,7 @@ SDL_CaptureAudio(void *devicep)
     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);