sdl_audio_callback() 函数的流程图如下: 从上图的流程可以很容易看出, sdl_audio_callback() 函数干的事情,就是调 audio_decode_frame() 函数,把 is->audio_buf 指针指向要传输的音频数据。然后再调 SDL_MixAudioFormat() 把...
data_len=device->callbackspec.size; When the WASAPI driver updates the number of samples in the audio spec, it callsSDL_CalculateAudioSpec(&this->spec)to updatedevice->spec.size. But that does nothing todevice->callbackspec. SDL/src/audio/wasapi/SDL_wasapi.c Lines 486 to 500 in2eef7ca...