How to do a sample rate conversion in Windows (and OSX)

Posted by Paperflyer on Stack Overflow See other posts from Stack Overflow or by Paperflyer
Published on 2008-09-03T12:48:42Z Indexed on 2010/03/30 2:33 UTC
Read the original article Hit count: 367

Filed under:
|
|
|

I am about to write an audio file converter for my side job at the university.
As part of this I would need sample rate conversion. However, my professor said that it would be pretty hard to write a sample rate converter that was both of good quality and fast.

On my research on the subject, I found some functions in the OSX CoreAudio-framework, that could do a sample rate conversion (AudioConverter.h). After all, an OS has to have some facilities to do that for its own audio stack.

Do you know a similar method for C/C++ and Windows, that are either part of the OS or open source?
I am pretty sure that this function exists within DirectX Audio (XAudio2?), but I seem to be unable to find a reference to it in the MSDN library.

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows