Browse Source

Sync info shutdown callback code with jack1 one.

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

+ 2
- 2
common/jack/types.h View File

@@ -422,9 +422,9 @@ enum JackStatus {
JackVersionError = 0x400,
/**
* Client process failure
* Backend error
*/
JackClientProcessFailure = 0x800,
JackBackendError = 0x800,
/**
* Client zombified failure


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

@@ -289,7 +289,7 @@ OSStatus JackCoreAudioDriver::DeviceNotificationCallback(AudioDeviceID inDevice,
case kAudioDevicePropertyStreamConfiguration: {
jack_error("Cannot handle kAudioDevicePropertyStreamConfiguration : server will quit...");
driver->NotifyFailure(JackClientProcessFailure, "Another application has changed the device configuration."); // Message length limited to JACK_MESSAGE_SIZE
driver->NotifyFailure(JackBackendError, "Another application has changed the device configuration."); // Message length limited to JACK_MESSAGE_SIZE
driver->CloseAUHAL();
kill(JackTools::GetPID(), SIGINT);
return kAudioHardwareUnsupportedOperationError;
@@ -297,7 +297,7 @@ OSStatus JackCoreAudioDriver::DeviceNotificationCallback(AudioDeviceID inDevice,
case kAudioDevicePropertyNominalSampleRate: {
jack_error("Cannot handle kAudioDevicePropertyNominalSampleRate : server will quit...");
driver->NotifyFailure(JackClientProcessFailure, "Another application has changed the sample rate."); // Message length limited to JACK_MESSAGE_SIZE
driver->NotifyFailure(JackBackendError, "Another application has changed the sample rate."); // Message length limited to JACK_MESSAGE_SIZE
driver->CloseAUHAL();
kill(JackTools::GetPID(), SIGINT);
return kAudioHardwareUnsupportedOperationError;


Loading…
Cancel
Save