<p>I am about to write an audio file converter for my side job at the university.<br>
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 <em>both</em> of good quality <em>and</em> fast.</p>

<p>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.  </p>

<p>Do you know a similar method for C/C++ and Windows, that are either part of the OS or open source?<br>
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.</p>

[{'answer_id': 41591, 'author': 'Mendelt', 'author_id': 3320, 'author_profile': 'https://Stackoverflow.com/users/3320', 'pm_score': 4, 'selected': True, 'text': '<p>Try Secret Rabbit Code (= SRC = Sample Rate Conversion ) It\'s GPL, it\'s fast and it\'s high quality. <a href="http://www.mega-nerd.com/SRC/license.html" rel="noreferrer">http://www.mega-nerd.com/SRC/license.html</a></p>\n'}, {'answer_id': 2542511, 'author': 'rcw3', 'author_id': 109115, 'author_profile': 'https://Stackoverflow.com/users/109115', 'pm_score': 1, 'selected': False, 'text': '<p>If you\'re worried about quality, check out <a href="http://src.infinitewave.ca/" rel="nofollow noreferrer">http://src.infinitewave.ca/</a>.  Very good comparisons on different resamplers.</p>\n'}]
['https://Stackoverflow.com/questions/41583', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1034/']