This class provides an AudioSourcePlayer, which will adapt its resampler whenever the device changes the sampling rate.
More...
#include <filmstro_audiohelpers_OutputSourcePlayer.h>
This class provides an AudioSourcePlayer, which will adapt its resampler whenever the device changes the sampling rate.
OutputSourcePlayer::OutputSourcePlayer |
( |
double |
sampleRate, |
|
|
int |
channels = 2 |
|
) |
| |
|
inline |
Constructs an OutputSourcePlayer.
This makes the processing independent from the devices playback rate.
- Parameters
-
sampleRate | is the sample rate the playing AudioSource would expect |
channels | is the number of channels for the resampler to provide. Defaults to 2 (stereo) |
void OutputSourcePlayer::audioDeviceAboutToStart |
( |
juce::AudioIODevice * |
device | ) |
|
|
inlineoverride |
callback when the device wants to start using the AudioDeviceIOCallback
void OutputSourcePlayer::audioDeviceIOCallback |
( |
const float ** |
inputChannelData, |
|
|
int |
totalNumInputChannels, |
|
|
float ** |
outputChannelData, |
|
|
int |
totalNumOutputChannels, |
|
|
int |
numSamples |
|
) |
| |
|
inlineoverride |
Callback from the AudioIODevice.
This drives the playback of the AudioSource
void OutputSourcePlayer::audioDeviceStopped |
( |
| ) |
|
|
inlineoverride |
Callback when the AudioIODevice just stopped using the AudioDeviceIOCallback.
void OutputSourcePlayer::setSource |
( |
juce::AudioSource * |
newSource | ) |
|
|
inline |
Set or replace the source of the AudioSourcePlayer.
The documentation for this class was generated from the following file: