jjzjj

currentSample

全部标签

c++ - 我可以从内部暂停回调吗?

我正在使用SDLaudio播放声音。SDL_LockAudio告诉这个:Donotcallthisfromthecallbackfunctionoryouwillcausedeadlock.但是,SDL_PauseAudio没有这么说,而是告诉:Thisfunctionpausesandunpausestheaudiocallbackprocessing我的混音器回调看起来像这样:voidAudioPlaybackCallback(void*,core::bty::UInt8*stream,intlen){//numberofbyteslefttoplayinthecurrentsam