CLAM-Development
1.4.0
|
#include <RtAAudioDevice.hxx>
Classes | |
class | Buffer |
Public Member Functions | |
RtAAudioDevice (const std::string &name, int _device) | |
~RtAAudioDevice () | |
void | Start (void) throw (Err) |
This method must be called to begin the use of this Device. | |
void | Stop (void) throw (Err) |
This method must be called to end the use of this Device. | |
void | Tick (void) |
void | Read (Audio &audio, const int channelID) |
Reads the information given by this Device and passes data to an Audio chunk. | |
void | Write (const Audio &audio, const int channelID) |
Writes the information given by an Audio chunk in the Devices. | |
![]() | |
AudioDevice (const std::string &name) | |
Constructor of the class that sets the name of object to the string passed by parameter. | |
virtual | ~AudioDevice () |
Destructor of class. | |
virtual void | GetInfo (TInfo &) |
Getter for the Info of Device Object attached to this AudioDevices instantiation. | |
virtual void | SetNChannels (int channels) |
Setter for the number of channels to allocate in the hardware. |
Additional Inherited Members | |
![]() | |
std::vector< AudioIn * > | mInputs |
std::vector< AudioOut * > | mOutputs |
std::string | mName |
bool | mForceNChannels |
int | mNChannels |
int | mNReadChannels |
int | mNWriteChannels |
![]() | |
bool | Register (AudioManager *am, AudioIn &in) |
bool | Register (AudioManager *am, AudioOut &out) |
void | Unregister (AudioIn &in) |
void | Unregister (AudioOut &out) |
int | SampleRate (void) |
int | Latency (void) |
void | SetLatency (int latency) |
Definition at line 29 of file RtAAudioDevice.hxx.
CLAM::RtAAudioDevice::RtAAudioDevice | ( | const std::string & | name, |
int | _device | ||
) |
Definition at line 255 of file RtAAudioDevice.cxx.
CLAM::RtAAudioDevice::~RtAAudioDevice | ( | ) |
Definition at line 372 of file RtAAudioDevice.cxx.
References Stop().
Reads the information given by this Device and passes data to an Audio chunk.
Must be implemented by any Device derived from this class.
audio | Audio object where data will be stored. |
channelID | Channel to read. |
Implements CLAM::AudioDevice.
Definition at line 377 of file RtAAudioDevice.cxx.
References CLAM::Audio::GetSize(), RtAudio::startStream(), and Tick().
|
virtual |
This method must be called to begin the use of this Device.
Must be implemented by any Device derived from this class
Implements CLAM::AudioDevice.
Definition at line 265 of file RtAAudioDevice.cxx.
References FORMAT, RtAudio::getStreamBuffer(), CLAM::AudioDevice::Latency(), CLAM::AudioDevice::mInputs, CLAM::AudioDevice::mOutputs, CLAM::AudioDevice::SampleRate(), and CLAM::AudioDevice::SetLatency().
|
virtual |
This method must be called to end the use of this Device.
Must be implemented by any Device derived from this class
Implements CLAM::AudioDevice.
Definition at line 361 of file RtAAudioDevice.cxx.
References RtAudio::stopStream().
Referenced by ~RtAAudioDevice().
void CLAM::RtAAudioDevice::Tick | ( | void | ) |
Definition at line 418 of file RtAAudioDevice.cxx.
References RtAudio::tickStream().
Writes the information given by an Audio chunk in the Devices.
Must be implemented by any Device derived from this class.
audio | Audio object with values that must to be passed to Devices |
channelID | Channel to write |
Implements CLAM::AudioDevice.
Definition at line 401 of file RtAAudioDevice.cxx.
References CLAM::Audio::GetSize(), RtAudio::startStream(), and Tick().