MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / createAudioFormatManager

Function createAudioFormatManager

Lib/Utils/AudioUtils.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59std::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
70void resampleBuffer(const AudioBuffer<float>& inBuffer,
71 AudioBuffer<float>& outBuffer,

Callers 2

loadAudioFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected