From d8454654b6992a84d988bfefaa6fa8300cc90e00 Mon Sep 17 00:00:00 2001 From: sletz Date: Wed, 21 Oct 2009 20:30:52 +0000 Subject: [PATCH] More cleanup in JackCoreAudioDriver::DeviceNotificationCallback. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3658 0c269be4-1314-0410-8aa9-9f06e86f4224 --- macosx/coreaudio/JackCoreAudioDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macosx/coreaudio/JackCoreAudioDriver.cpp b/macosx/coreaudio/JackCoreAudioDriver.cpp index 9137881a..0652a5cc 100644 --- a/macosx/coreaudio/JackCoreAudioDriver.cpp +++ b/macosx/coreaudio/JackCoreAudioDriver.cpp @@ -272,6 +272,7 @@ OSStatus JackCoreAudioDriver::DeviceNotificationCallback(AudioDeviceID inDevice, case kAudioDevicePropertyStreamConfiguration: { jack_error("Cannot handle kAudioDevicePropertyStreamConfiguration : server will quit..."); driver->NotifyFailure(JackBackendError, "CoreAudio device stream configuration has changed, backend stopped."); + driver->CloseAUHAL(); kill(JackTools::GetPID(), SIGINT); return kAudioHardwareUnsupportedOperationError; } @@ -279,6 +280,7 @@ OSStatus JackCoreAudioDriver::DeviceNotificationCallback(AudioDeviceID inDevice, case kAudioDevicePropertyNominalSampleRate: { jack_error("Cannot handle kAudioDevicePropertyNominalSampleRate : server will quit..."); driver->NotifyFailure(JackBackendError, "CoreAudio device sampling rate has changed, backend stopped."); + driver->CloseAUHAL(); kill(JackTools::GetPID(), SIGINT); return kAudioHardwareUnsupportedOperationError; }