libGizmod/AlsaSoundCardInterface.cpp

Go to the documentation of this file.
00001 
00012 /*
00013   
00014   Copyright (c) 2007, Tim Burrell
00015   Licensed under the Apache License, Version 2.0 (the "License");
00016   you may not use this file except in compliance with the License.
00017   You may obtain a copy of the License at 
00018 
00019         http://www.apache.org/licenses/LICENSE-2.0
00020 
00021   Unless required by applicable law or agreed to in writing, software
00022   distributed under the License is distributed on an "AS IS" BASIS,
00023   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   See the License for the specific language governing permissions and 
00025   limitations under the License. 
00026   
00027 */
00028 
00029 #include "AlsaSoundCardInterface.hpp"
00030 #include "../libH/Debug.hpp"
00031 #include "../libH/Exception.hpp"
00032 
00033 using namespace std;
00034 using namespace H;
00035 using namespace Gizmod;
00036 
00038 // Typedef's, structs
00040 
00042 // Construction
00044 
00048 AlsaSoundCardInterface::AlsaSoundCardInterface(AlsaInterface * piAlsa) {
00049         mpiAlsa = piAlsa;
00050 }
00051 
00055 AlsaSoundCardInterface::~AlsaSoundCardInterface() {
00056 }
00057 
00059 // Class Body
00061 
00066 void AlsaSoundCardInterface::addManualUpdater(AlsaMixerInterface * pMixer) {
00067         // make sure it's not already in the list
00068         for (list<AlsaMixerInterface *>::iterator iter = mUpdateList.begin(); iter != mUpdateList.end(); iter ++)
00069                 if (*iter == pMixer)
00070                         return;
00071         
00072         mUpdateList.push_back(pMixer);
00073 }
00074 
00079 AlsaInterface * AlsaSoundCardInterface::getAlsa() {
00080         return mpiAlsa;
00081 }

Generated on Wed Nov 7 10:04:16 2007 for gizmod by  doxygen 1.5.3