Mixxx

SoundDevice Class Reference

#include <sounddevice.h>

Inheritance diagram for SoundDevice:
Collaboration diagram for SoundDevice:

List of all members.

Public Member Functions

 SoundDevice (ConfigObject< ConfigValue > *config, SoundManager *sm)
virtual ~SoundDevice ()
QString getInternalName () const
QString getDisplayName () const
QString getHostAPI () const
void setHostAPI (QString api)
void setSampleRate (double sampleRate)
void setFramesPerBuffer (unsigned int framesPerBuffer)
virtual int open ()=0
virtual int close ()=0
virtual QString getError () const =0
int getNumOutputChannels () const
int getNumInputChannels () const
SoundDeviceError addOutput (const AudioOutput &out)
SoundDeviceError addInput (const AudioInput &in)
void clearOutputs ()
void clearInputs ()
bool operator== (const SoundDevice &other) const
bool operator== (const QString &other) const

Protected Attributes

ConfigObject< ConfigValue > * m_pConfig
SoundManagerm_pSoundManager
QString m_strInternalName
QString m_strDisplayName
int m_iNumOutputChannels
int m_iNumInputChannels
double m_dSampleRate
QString m_hostAPI
unsigned int m_framesPerBuffer
QList< AudioOutputm_audioOutputs
QList< AudioInputm_audioInputs

Detailed Description

Definition at line 37 of file sounddevice.h.


Constructor & Destructor Documentation

SoundDevice::SoundDevice ( ConfigObject< ConfigValue > *  config,
SoundManager sm 
)

Definition at line 24 of file sounddevice.cpp.

SoundDevice::~SoundDevice ( ) [virtual]

Definition at line 35 of file sounddevice.cpp.


Member Function Documentation

SoundDeviceError SoundDevice::addInput ( const AudioInput in)

Definition at line 110 of file sounddevice.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

SoundDeviceError SoundDevice::addOutput ( const AudioOutput out)

Definition at line 89 of file sounddevice.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SoundDevice::clearInputs ( )

Definition at line 123 of file sounddevice.cpp.

Here is the caller graph for this function:

void SoundDevice::clearOutputs ( )

Definition at line 105 of file sounddevice.cpp.

Here is the caller graph for this function:

virtual int SoundDevice::close ( ) [pure virtual]

Implemented in SoundDevicePortAudio.

QString SoundDevice::getDisplayName ( ) const

Definition at line 45 of file sounddevice.cpp.

Here is the caller graph for this function:

virtual QString SoundDevice::getError ( ) const [pure virtual]

Implemented in SoundDevicePortAudio.

Here is the caller graph for this function:

QString SoundDevice::getHostAPI ( ) const

Definition at line 50 of file sounddevice.cpp.

Here is the caller graph for this function:

QString SoundDevice::getInternalName ( ) const

Definition at line 40 of file sounddevice.cpp.

Here is the caller graph for this function:

int SoundDevice::getNumInputChannels ( ) const

Definition at line 55 of file sounddevice.cpp.

Here is the caller graph for this function:

int SoundDevice::getNumOutputChannels ( ) const

Definition at line 60 of file sounddevice.cpp.

Here is the caller graph for this function:

virtual int SoundDevice::open ( ) [pure virtual]

Implemented in SoundDevicePortAudio.

Here is the caller graph for this function:

bool SoundDevice::operator== ( const SoundDevice other) const

Definition at line 128 of file sounddevice.cpp.

Here is the call graph for this function:

bool SoundDevice::operator== ( const QString &  other) const

Definition at line 133 of file sounddevice.cpp.

Here is the call graph for this function:

void SoundDevice::setFramesPerBuffer ( unsigned int  framesPerBuffer)

Definition at line 78 of file sounddevice.cpp.

Here is the caller graph for this function:

void SoundDevice::setHostAPI ( QString  api)

Definition at line 65 of file sounddevice.cpp.

void SoundDevice::setSampleRate ( double  sampleRate)

Definition at line 70 of file sounddevice.cpp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 70 of file sounddevice.h.

Definition at line 69 of file sounddevice.h.

double SoundDevice::m_dSampleRate [protected]

Definition at line 66 of file sounddevice.h.

unsigned int SoundDevice::m_framesPerBuffer [protected]

Definition at line 68 of file sounddevice.h.

QString SoundDevice::m_hostAPI [protected]

Definition at line 67 of file sounddevice.h.

Definition at line 65 of file sounddevice.h.

Definition at line 64 of file sounddevice.h.

Definition at line 60 of file sounddevice.h.

Definition at line 61 of file sounddevice.h.

QString SoundDevice::m_strDisplayName [protected]

Definition at line 63 of file sounddevice.h.

QString SoundDevice::m_strInternalName [protected]

Definition at line 62 of file sounddevice.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines