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 |
|
|