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 "GizmoEventSoundCard.hpp" 00030 #include "../libH/Debug.hpp" 00031 #include "../libH/Exception.hpp" 00032 #include <boost/shared_ptr.hpp> 00033 00034 using namespace std; 00035 using namespace boost; 00036 using namespace H; 00037 using namespace Gizmod; 00038 00040 // Type Defs 00042 00044 // Construction 00046 00050 GizmoEventSoundCard::GizmoEventSoundCard(AlsaEvent const & Event, AlsaSoundCard const & SoundCard, bool IsRemote) : 00051 AlsaEvent(Event), 00052 GizmoEvent(GIZMO_EVENTCLASS_SOUNDCARD, IsRemote) 00053 { 00054 mpSoundCard = &SoundCard; 00055 mpMixer = NULL; 00056 } 00057 00061 GizmoEventSoundCard::GizmoEventSoundCard(AlsaEvent const & Event, AlsaSoundCard const & SoundCard, AlsaMixer const & Mixer, bool IsRemote) : 00062 AlsaEvent(Event), 00063 GizmoEvent(GIZMO_EVENTCLASS_SOUNDCARD, IsRemote) 00064 { 00065 mpSoundCard = &SoundCard; 00066 mpMixer = &Mixer; 00067 } 00068 00072 GizmoEventSoundCard::GizmoEventSoundCard() { 00073 } 00074 00078 GizmoEventSoundCard::~GizmoEventSoundCard() { 00079 } 00080 00082 // Class Body 00084 00089 AlsaMixer const * GizmoEventSoundCard::getMixer() { 00090 return mpMixer; 00091 } 00092 00097 AlsaSoundCard const * GizmoEventSoundCard::getSoundCard() { 00098 return mpSoundCard; 00099 }