I am using WASAPI to get audio data in c++ and Yeh!. I learned that conversion of audio data is not support in WASAPI, since it gives to and take from the core audio end points. I am working on a project to find exact audio frequency which needs simple PCM data only. but using WASAPI, I'm getting data with different format depends on audio devices. So, is there any simple API by windows to convert any data to PCM.
Note: I get audio using the method
IAudioCaptureClient::GetBuffer(&data,...);
or is there is any other api, that I can use It get data in PCM format directly for windows desktop and windows phone?
答案 0 :(得分:0)
libswresample
- popular alternative option for the conversion; you can easily find other libraries as wellSee also: