Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::MM::OMixerInterface Class Reference

#include </home/clem/local/src/opie/libopie2/opiemm/osoundsystem.h>

Collaboration diagram for Opie::MM::OMixerInterface:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QMap< QString, int
>::ConstIterator 
ChannelIterator

Public Member Functions

 OMixerInterface (QObject *parent, const char *name)
virtual ~OMixerInterface ()
QStringList allChannels () const
QStringList recChannels () const
QStringList playChannels () const
bool hasMultipleRecording () const
bool hasChannel (const QString &channel) const
bool isStereo (const QString &channel) const
bool isRecordable (const QString &channel) const
void setVolume (const QString &channel, int left, int right=-1)
int volume (const QString &channel) const

Protected Attributes

int _fd
int _capmask
int _devmask
int _recmask
int _stmask
QMap< QString, int > _channels

Private Member Functions

void init ()

Private Attributes

Private * d

Member Typedef Documentation

typedef QMap<QString,int>::ConstIterator Opie::MM::OMixerInterface::ChannelIterator
 

Definition at line 171 of file osoundsystem.h.


Constructor & Destructor Documentation

OMixerInterface::OMixerInterface QObject *  parent,
const char *  name
 

Constructor. Normally you don't create OMixerInterface objects yourself, but access them via the OSoundCard interface.

Definition at line 176 of file osoundsystem.cpp.

References init(), odebug, and oendl.

OMixerInterface::~OMixerInterface  )  [virtual]
 

Destructor.

Definition at line 184 of file osoundsystem.cpp.


Member Function Documentation

QStringList OMixerInterface::allChannels  )  const
 

Returns:
all available channels.

Definition at line 227 of file osoundsystem.cpp.

References _channels, QMap< Key, T >::begin(), and QMap< Key, T >::end().

Referenced by VolumeAppletControl::build(), main(), and playChannels().

bool OMixerInterface::hasChannel const QString channel  )  const
 

Returns:
true, if channel exists.

Definition at line 263 of file osoundsystem.cpp.

References _channels, and QMap< Key, T >::contains().

bool OMixerInterface::hasMultipleRecording  )  const
 

Returns:
true, if the device features multiple recording sources.

Definition at line 257 of file osoundsystem.cpp.

References _capmask.

Referenced by main().

void OMixerInterface::init  )  [private]
 

Definition at line 189 of file osoundsystem.cpp.

References _capmask, _channels, _devmask, _fd, _recmask, _stmask, device_label, i, QMap< Key, T >::insert(), max_device_nr, name, odebug, oendl, and owarn.

Referenced by OMixerInterface().

bool OMixerInterface::isRecordable const QString channel  )  const
 

Returns:
tru, if channel is a possible recording source.

Definition at line 275 of file osoundsystem.cpp.

References _channels, _recmask, and QMap< Key, T >::contains().

Referenced by main().

bool OMixerInterface::isStereo const QString channel  )  const
 

Returns:
true, if channel is stereo.

Definition at line 269 of file osoundsystem.cpp.

References _channels, _stmask, and QMap< Key, T >::contains().

Referenced by main().

QStringList OMixerInterface::playChannels  )  const
 

Returns:
playable channels.

Definition at line 251 of file osoundsystem.cpp.

References allChannels().

QStringList OMixerInterface::recChannels  )  const
 

Returns:
recordable channels.

Definition at line 239 of file osoundsystem.cpp.

References _channels, _recmask, QMap< Key, T >::begin(), and QMap< Key, T >::end().

void OMixerInterface::setVolume const QString channel,
int  left,
int  right = -1
 

Set the left and right volumes for channel. If no value for right is given, the value for left is taken for that.

Definition at line 281 of file osoundsystem.cpp.

References _channels, _fd, QMap< Key, T >::contains(), oendl, owarn, and volume().

int OMixerInterface::volume const QString channel  )  const
 

Returns:
the volume of channel or -1, if the channel doesn't exist.
Note:
You might want to use hasChannel() to check if a channel exists.

Definition at line 304 of file osoundsystem.cpp.

References _channels, _fd, QMap< Key, T >::contains(), oendl, and owarn.

Referenced by VolumeAppletControl::build(), main(), and setVolume().


Member Data Documentation

int Opie::MM::OMixerInterface::_capmask [protected]
 

Definition at line 228 of file osoundsystem.h.

Referenced by hasMultipleRecording(), and init().

QMap<QString,int> Opie::MM::OMixerInterface::_channels [protected]
 

Definition at line 232 of file osoundsystem.h.

Referenced by allChannels(), hasChannel(), init(), isRecordable(), isStereo(), recChannels(), setVolume(), and volume().

int Opie::MM::OMixerInterface::_devmask [protected]
 

Definition at line 229 of file osoundsystem.h.

Referenced by init().

int Opie::MM::OMixerInterface::_fd [protected]
 

Definition at line 227 of file osoundsystem.h.

Referenced by init(), setVolume(), and volume().

int Opie::MM::OMixerInterface::_recmask [protected]
 

Definition at line 230 of file osoundsystem.h.

Referenced by init(), isRecordable(), and recChannels().

int Opie::MM::OMixerInterface::_stmask [protected]
 

Definition at line 231 of file osoundsystem.h.

Referenced by init(), and isStereo().

Private* Opie::MM::OMixerInterface::d [private]
 

Definition at line 237 of file osoundsystem.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:34 2005 for OPIE by  doxygen 1.4.2