/[svn]/linuxsampler/trunk/src/engines/AbstractEngineChannel.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/AbstractEngineChannel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2325 by persson, Sun Feb 19 12:13:19 2012 UTC revision 2326 by persson, Thu Mar 8 19:40:14 2012 UTC
# Line 191  namespace LinuxSampler { Line 191  namespace LinuxSampler {
191          return (pEngine) ? pEngine->pAudioOutputDevice : NULL;          return (pEngine) ? pEngine->pAudioOutputDevice : NULL;
192      }      }
193    
194        /**
195         * Gets thread safe access to the currently connected audio output
196         * device from other threads than the lscp thread.
197         */
198        AudioOutputDevice* AbstractEngineChannel::GetAudioOutputDeviceSafe() {
199            EngineMutex.Lock();
200            AudioOutputDevice* res = GetAudioOutputDevice();
201            EngineMutex.Unlock();
202            return res;
203        }
204    
205      void AbstractEngineChannel::SetOutputChannel(uint EngineAudioChannel, uint AudioDeviceChannel) {      void AbstractEngineChannel::SetOutputChannel(uint EngineAudioChannel, uint AudioDeviceChannel) {
206          if (!pEngine || !pEngine->pAudioOutputDevice) throw AudioOutputException("No audio output device connected yet.");          if (!pEngine || !pEngine->pAudioOutputDevice) throw AudioOutputException("No audio output device connected yet.");
207    

Legend:
Removed from v.2325  
changed lines
  Added in v.2326

  ViewVC Help
Powered by ViewVC