You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenAudio_ArduinoLibrary/AudioSwitch_OA_F32.cpp

27 lines
642 B

/*
* AudioSwitch_F32.cpp see AudioSwitch_F32.h for notes
* Created: Chip Audette, OpenAudio, April 2019
* MIT License. use at your own risk.
*/
#include "AudioSwitch_OA_F32.h"
void AudioSwitch4_OA_F32::update(void) {
audio_block_f32_t *out=NULL;
out = receiveReadOnly_f32(0);
if (!out) return;
AudioStream_F32::transmit(out,outputChannel); //just output to the one channel
AudioStream_F32::release(out);
}
void AudioSwitch8_OA_F32::update(void) {
audio_block_f32_t *out=NULL;
out = receiveReadOnly_f32(0);
if (!out) return;
AudioStream_F32::transmit(out,outputChannel);
AudioStream_F32::release(out);
}