Skip to content

Instantly share code, notes, and snippets.

@sehraf
Created December 4, 2020 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sehraf/0cccd780302bd7386c9c0d9f02c4097b to your computer and use it in GitHub Desktop.
Save sehraf/0cccd780302bd7386c9c0d9f02c4097b to your computer and use it in GitHub Desktop.
#include "AudioOutputFixedRates.h"
AudioOutputFixedRates::AudioOutputFixedRates(AudioOutput *dest)
{
sink = dest;
}
AudioOutputFixedRates::~AudioOutputFixedRates() {}
bool AudioOutputFixedRates::SetFixedRate(int hz)
{
return sink->SetRate(hz);
}
bool AudioOutputFixedRates::SetFixedBitsPerSample(int bits)
{
return sink->SetBitsPerSample(bits);
}
bool AudioOutputFixedRates::SetFixedChannels(int channels)
{
return sink->SetChannels(channels);
}
bool AudioOutputFixedRates::begin()
{
return sink->begin();
}
bool AudioOutputFixedRates::ConsumeSample(int16_t sample[2])
{
return sink->ConsumeSample(sample);
}
bool AudioOutputFixedRates::stop()
{
// return sink->stop();
}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment