author | mickeyl <mickeyl> | 2005-02-02 15:23:01 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-02-02 15:23:01 (UTC) |
commit | 227d06128b74ef78b8268e18dabe454469b65cc8 (patch) (side-by-side diff) | |
tree | 64632ebff3bb6df1ba81ce1e70638cbce15de33c /libopie2/opiemm | |
parent | 1a5dc271114432e0e598af499c076bfbf69ff972 (diff) | |
download | opie-227d06128b74ef78b8268e18dabe454469b65cc8.zip opie-227d06128b74ef78b8268e18dabe454469b65cc8.tar.gz opie-227d06128b74ef78b8268e18dabe454469b65cc8.tar.bz2 |
first work on input system abstractions
-rw-r--r-- | libopie2/opiemm/osoundsystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiemm/osoundsystem.h b/libopie2/opiemm/osoundsystem.h index cce90c0..5f6fb7a 100644 --- a/libopie2/opiemm/osoundsystem.h +++ b/libopie2/opiemm/osoundsystem.h @@ -22,101 +22,101 @@ -. .:....=;==+<; You should have received a copy of the GNU -_. . . )=. = Library General Public License along with -- :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef OSOUNDSYSTEM_H #define OSOUNDSYSTEM_H #include <qobject.h> #include <qdict.h> #include <qmap.h> namespace Opie { namespace MM { class OAudioInterface; class OMixerInterface; class OSoundCard; /*====================================================================================== * OSoundSystem *======================================================================================*/ /** * @brief A container class for all audio interfaces * * This class provides access to all available audio/midi/sequencer interfaces of your computer. * * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> */ class OSoundSystem : public QObject { Q_OBJECT public: typedef QDict<OSoundCard> CardMap; typedef QDictIterator<OSoundCard> CardIterator; public: /** * @returns the number of available interfaces */ int count() const; /** - * @returns a pointer to the (one and only) @ref ONetwork instance. + * @returns a pointer to the (one and only) @ref OSystem instance. */ static OSoundSystem* instance(); /** - * @returns an iterator usable for iterating through all network interfaces. + * @returns an iterator usable for iterating through all sound cards. */ CardIterator iterator() const; /** * @returns a pointer to the @ref OAudioInterface object for the specified @a interface or 0, if not found * @see OAudioInterface */ OSoundCard* card( const QString& interface ) const; /** * @internal Rebuild the internal interface database * @note Sometimes it might be useful to call this from client code, * e.g. after issuing a cardctl insert */ void synchronize(); protected: OSoundSystem(); private: static OSoundSystem* _instance; CardMap _interfaces; class Private; Private *d; }; /*====================================================================================== * OSoundCard *======================================================================================*/ class OSoundCard : public QObject { Q_OBJECT public: /** * Constructor. Normally you don't create @ref OSoundCard objects yourself, * but access them via @ref OSoundSystem::card(). */ OSoundCard( QObject* parent, const char* name ); /** * Destructor. */ virtual ~OSoundCard(); bool hasMixer() const { return _audio; }; bool hasAudio() const { return _mixer; }; OAudioInterface* audio() const { return _audio; }; |