diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-07-15 15:40:03 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-07-15 15:40:03 +0800 |
commit | 7eb03463c82f7951994f1aaf005032fb19fa1da2 (patch) | |
tree | 49d0b01c939ed35b4c832ca33d08824b04513aec /src/device_nexus.cpp | |
parent | 0ca5a7725ab8e282396de214078b068aeade4024 (diff) |
NexusDevice: remove all inputs on closing audio device.
Diffstat (limited to 'src/device_nexus.cpp')
-rw-r--r-- | src/device_nexus.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device_nexus.cpp b/src/device_nexus.cpp index 0087068..670a38e 100644 --- a/src/device_nexus.cpp +++ b/src/device_nexus.cpp @@ -89,7 +89,12 @@ namespace audiere { NexusAudioDevice::~NexusAudioDevice() { ADR_GUARD("NexusAudioDevice::~NexusAudioDevice"); + + NEXUS_PlatformConfiguration config; + NEXUS_Platform_GetConfiguration(&config); + NEXUS_AudioPlayback_Stop(m_playback); + NEXUS_AudioOutput_RemoveAllInputs(NEXUS_AudioDac_GetConnector(config.outputs.audioDacs[0])); NEXUS_AudioPlayback_Close(m_playback); BKNI_DestroyEvent(m_event); delete [] m_buffer; |