XCORE SDK
XCORE Software Development Kit
|
OutputHandler which transmits samples over a channel. More...
#include <OutputHandler.hpp>
Public Member Functions | |
ChannelSampleTransmitter () | |
Construct a ChannelSampleTransmitter . | |
ChannelSampleTransmitter (chanend_t c_sample_out) | |
Construct a ChannelSampleTransmitter . More... | |
void | SetChannel (chanend_t c_sample_out) |
Set the channel used for sending samples. More... | |
void | ProcessSample (int32_t sample[MIC_COUNT]) |
Transmit the specified sample. More... | |
OutputHandler which transmits samples over a channel.
This class is intended to be used as an OutputHandler with the MicArray
class.
With this class, each call to ProcessSample()
attempts to send the sample over a channel. The receiver must know how many channels to expect and should waiting to receive the sample before ProcessSample()
is called on this object.
A sample is a vector quantity which corresponds to a single time step and containing one element per audio channel.
MIC_COUNT | Number of channels in a sample. |
|
inline |
Construct a ChannelSampleTransmitter
.
c_sample_out | Channel for sending samples. |
void mic_array::ChannelSampleTransmitter< MIC_COUNT >::ProcessSample | ( | int32_t | sample[MIC_COUNT] | ) |
Transmit the specified sample.
sample | Sample to be transmitted. |
void mic_array::ChannelSampleTransmitter< MIC_COUNT >::SetChannel | ( | chanend_t | c_sample_out | ) |
Set the channel used for sending samples.
c_sample_out | Channel for sending samples. |