Why might my AudioQueueOutputCallback not be called?

前端 未结 2 991
离开以前
离开以前 2021-02-06 12:49

I\'m using the Audio Queue Services API to play audio streamed from a server over a TCP socket connection on an iPhone. I can play the buffers that were filled from the socket c

2条回答
  •  隐瞒了意图╮
    2021-02-06 13:17

    Try changing self for (void*)self. Like this:

    status = AudioQueueNewOutput(&_streamDescription, AQBufferCallback, (void*)self, CFRunLoopGetCurrent(), kCFRunLoopCommonModes, 0, &_audioQueue);

提交回复
热议问题