brookicv / FFMPEG-study

学习FFMPEG的一些代码示例
139 stars 77 forks source link

FFmpeg-playAudio.cpp cannot work #2

Closed hedyhefty closed 5 years ago

hedyhefty commented 5 years ago

I set up my environment with FFmpeg4.2 & SDL2.10, and the environment is OK since my own code can run. However, I run into the same problem with you and want to run the code in FFmpeg-playAudio.cpp but it don't work.

hedyhefty commented 5 years ago

I have solved this issue in my fork, by simply replace the SDL_MixAudio() with raw memcpy, though I still don't know why SDL_MixAudio cannot work with SDL 2.10.