Browse Source

More cleanup in JackCoreAudioDriver::DeviceNotificationCallback.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3658 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/v1.9.4
sletz 15 years ago
parent
commit
d8454654b6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      macosx/coreaudio/JackCoreAudioDriver.cpp

+ 2
- 0
macosx/coreaudio/JackCoreAudioDriver.cpp View File

@@ -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;
}


Loading…
Cancel
Save