13 #ifndef OPENSHOT_RESAMPLER_H 14 #define OPENSHOT_RESAMPLER_H 18 #include <AppConfig.h> 19 #include <juce_audio_basics/juce_audio_basics.h> 20 #include <juce_audio_devices/juce_audio_devices.h> 35 juce::ResamplingAudioSource *resample_source;
36 juce::AudioSourceChannelInfo resample_callback_buffer;
39 int new_num_of_samples;
Header file for AudioBufferSource class.
~AudioResampler()
Destructor.
This class is used to expose an AudioBuffer<float> as an AudioSource in JUCE.
AudioResampler()
Default constructor.
void SetBuffer(juce::AudioBuffer< float > *new_buffer, double sample_rate, double new_sample_rate)
Sets the audio buffer and key settings.
This namespace is the default namespace for all code in the openshot library.
juce::AudioBuffer< float > * GetResampledBuffer()
Get the resampled audio buffer.
This class is used to resample audio data for many sequential frames.