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

I am going to write an audio file converter for my side work at the university.
As part of this, I will need a sample rate conversion. However, my professor said that it would be rather difficult to write a sample rate converter that would be good and fast.

In the course of my research on this issue, I found some functions in the OSX CoreAudio-framework that could perform a sample rate conversion (AudioConverter.h). In the end, the OS should have some features for this in 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'm sure this feature exists in DirectX Audio (XAudio2?), But I seem to be unable to find a link to it in the MSDN library.

+4
source share
2 answers

Try the rabbit secret code (= src = Sample Rate Conversion). This is the GPL, it is fast and high quality. http://www.mega-nerd.com/SRC/license.html

+5
source

If you are worried about quality, check out http://src.infinitewave.ca/ . Very good comparisons on different resamplers.

+1
source

Source: https://habr.com/ru/post/1276529/


All Articles