Commit d8454654 authored by sletz's avatar sletz
Browse files

More cleanup in JackCoreAudioDriver::DeviceNotificationCallback.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3658 0c269be4-1314-0410-8aa9-9f06e86f4224
parent f2085bbd
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment