00001 /* audiodevs: Abstraction layer for audio hardware & samples 00002 Copyright (C) 2003-2004 Nemosoft Unv. 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 00018 For questions, remarks, patches, etc. for this program, the author can be 00019 reached at camstream@smcc.demon.nl. 00020 */ 00021 00022 #ifndef AUDIOCOLLECTOR_H 00023 #define AUDIOCOLLECTOR_H 00024 00025 #ifdef HAVE_CONFIG_H 00026 #include "config.h" 00027 #endif 00028 00029 #include <qmap.h> 00030 #include <qlist.h> 00031 00032 #include "AudioDevice.h" 00033 00034 class CAudioCollector 00035 { 00036 private: 00037 static CAudioCollector *s_pAudioCollector; 00038 QList<CAudioDevice> m_Devices; 00039 00040 CAudioCollector(); 00041 void Scan(); 00042 00043 public: 00044 static CAudioCollector *Instance(); 00045 00046 uint NumberOfAudioDevices() const; 00047 CAudioDevice *GetAudioDevice(uint n); 00048 00049 CAudioDevice *Find(const QString &device_name, const QString &node_name); 00050 }; 00051 00052 00053 #endif