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

Opie::MM::OSoundSystem Class Reference

A container class for the Linux OSS/ALSA audio subsystem. More...

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

Collaboration diagram for Opie::MM::OSoundSystem:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QDict< OSoundCardCardMap
typedef QDictIterator< OSoundCardCardIterator

Public Member Functions

int count () const
CardIterator iterator () const
OSoundCardcard (const QString &interface) const
void synchronize ()

Static Public Member Functions

static OSoundSysteminstance ()

Protected Member Functions

 OSoundSystem ()

Private Attributes

CardMap _interfaces
Private * d

Static Private Attributes

static OSoundSystem_instance = 0

Detailed Description

A container class for the Linux OSS/ALSA audio subsystem.

This class provides access to all available audio/midi/sequencer interfaces of your device.

Author:
Michael 'Mickey' Lauer <mickey@Vanille.de>

Definition at line 55 of file osoundsystem.h.


Member Typedef Documentation

typedef QDictIterator<OSoundCard> Opie::MM::OSoundSystem::CardIterator
 

Definition at line 61 of file osoundsystem.h.

typedef QDict<OSoundCard> Opie::MM::OSoundSystem::CardMap
 

Definition at line 57 of file osoundsystem.h.


Constructor & Destructor Documentation

OSoundSystem::OSoundSystem  )  [protected]
 

Definition at line 55 of file osoundsystem.cpp.

References odebug, oendl, and synchronize().

Referenced by instance().


Member Function Documentation

OSoundCard * OSoundSystem::card const QString interface  )  const
 

Returns:
a pointer to the OAudioInterface object for the specified interface or 0, if not found
See also:
OAudioInterface

Definition at line 100 of file osoundsystem.cpp.

References _interfaces.

int OSoundSystem::count  )  const
 

Returns:
the number of available interfaces

Definition at line 94 of file osoundsystem.cpp.

References _interfaces, and QDict< type >::count().

OSoundSystem * OSoundSystem::instance  )  [static]
 

Returns:
a pointer to the (one and only) OSystem instance.

Definition at line 106 of file osoundsystem.cpp.

References _instance, and OSoundSystem().

Referenced by main().

OSoundSystem::CardIterator OSoundSystem::iterator  )  const
 

Returns:
an iterator usable for iterating through all sound cards.

Definition at line 113 of file osoundsystem.cpp.

References _interfaces.

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

void OSoundSystem::synchronize  ) 
 

For internal use only.

Rebuild the internal interface database

Note:
Sometimes it might be useful to call this from client code, e.g. after issuing a cardctl insert

Definition at line 61 of file osoundsystem.cpp.

References _interfaces, QDict< type >::clear(), and QDict< type >::insert().

Referenced by OSoundSystem().


Member Data Documentation

OSoundSystem * OSoundSystem::_instance = 0 [static, private]
 

Definition at line 53 of file osoundsystem.cpp.

Referenced by instance().

CardMap Opie::MM::OSoundSystem::_interfaces [private]
 

Definition at line 93 of file osoundsystem.h.

Referenced by card(), count(), iterator(), and synchronize().

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

Definition at line 94 of file osoundsystem.h.


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