| 57 | } |
| 58 | |
| 59 | std::unique_ptr<AudioFormatManager> createAudioFormatManager() |
| 60 | { |
| 61 | auto audio_format_manager = std::make_unique<AudioFormatManager>(); |
| 62 | audio_format_manager->registerFormat(new juce::WavAudioFormat, true); |
| 63 | audio_format_manager->registerFormat(new juce::AiffAudioFormat, false); |
| 64 | audio_format_manager->registerFormat(new juce::FlacAudioFormat, false); |
| 65 | audio_format_manager->registerFormat(new juce::OggVorbisAudioFormat, false); |
| 66 | |
| 67 | return std::move(audio_format_manager); |
| 68 | } |
| 69 | |
| 70 | void resampleBuffer(const AudioBuffer<float>& inBuffer, |
| 71 | AudioBuffer<float>& outBuffer, |
no outgoing calls
no test coverage detected