# Amuse: include/amuse/IBackendVoice.hpp Source File

IBackendVoice.hpp
#ifndef __AMUSE_IBACKENDVOICE_HPP__
#define __AMUSE_IBACKENDVOICE_HPP__
namespace amuse
{
enum class AudioChannel
{
FrontLeft,
FrontRight,
RearLeft,
RearRight,
FrontCenter,
LFE,
SideLeft,
SideRight,
Unknown = 0xff
};
struct ChannelMap
{
unsigned m_channelCount = 0;
AudioChannel m_channels[8] = {};
};
class IBackendVoice
{
public:
virtual ~IBackendVoice() = default;
virtual void resetSampleRate(double sampleRate)=0;
virtual void setMatrixCoefficients(const float coefs[8])=0;
virtual void setPitchRatio(double ratio, bool slew)=0;
virtual void start()=0;
virtual void stop()=0;
};
}
#endif // __AMUSE_IBACKENDVOICE_HPP__
amuse::IBackendVoice
Definition: IBackendVoice.hpp:29
amuse
Definition: AudioGroup.hpp:8
amuse::ChannelMap
Definition: IBackendVoice.hpp:22