AudioChannel Class Reference

AudioChannel wraps one 'real' audiochannel into an easy to use class. More...

List of all members.

Public Member Functions

 AudioChannel (const QString &busName, const QString &audioType, int flags, uint channelNumber)
audio_sample_t * get_buffer (nframes_t)
void set_latency (unsigned int latency)
void silence_buffer (nframes_t nframes)
void set_buffer_size (nframes_t size)
void set_monitor_peaks (bool monitor)
uint get_number () const
void monitor_peaks ()
audio_sample_t get_peak_value ()
QString get_name ()
uint get_buffer_size ()

Friends

class JackDriver
class AlsaDriver
class PADriver
class PulseAudioDriver
class Driver
class CoreAudioDriver


Detailed Description

AudioChannel wraps one 'real' audiochannel into an easy to use class.

An AudioChannel has a audio_sample_t* buffer, a name and some functions for setting the buffer size, and monitoring the highest peak value, which is handy to use by for example a VU meter.


Member Function Documentation

audio_sample_t AudioChannel::get_peak_value (  ) 

Returns:
The highest peak value since the previous call to this function, call this at least 10 times each second to keep data consistent

References RingBuffer::read(), and RingBuffer::read_space().


The documentation for this class was generated from the following files:

Generated on Sun Mar 8 12:44:05 2009 for traverso by  doxygen 1.5.5