Created
December 4, 2020 19:50
-
-
Save sehraf/0cccd780302bd7386c9c0d9f02c4097b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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