Browse Source

Improve debug message.

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

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

@@ -296,11 +296,11 @@ OSStatus JackCoreAudioDriver::DeviceNotificationCallback(AudioDeviceID inDevice,
} }
case kAudioDevicePropertyNominalSampleRate: { case kAudioDevicePropertyNominalSampleRate: {
Float64 new_sample_rate;
Float64 new_sample_rate = 0;
UInt32 outsize = sizeof(Float64); UInt32 outsize = sizeof(Float64);
OSStatus err = AudioDeviceGetProperty(driver->fDeviceID, 0, kAudioDeviceSectionGlobal, kAudioDevicePropertyNominalSampleRate, &outsize, &new_sample_rate); OSStatus err = AudioDeviceGetProperty(driver->fDeviceID, 0, kAudioDeviceSectionGlobal, kAudioDevicePropertyNominalSampleRate, &outsize, &new_sample_rate);
if (err != noErr || new_sample_rate != driver->fEngineControl->fSampleRate) { if (err != noErr || new_sample_rate != driver->fEngineControl->fSampleRate) {
jack_error("Cannot handle kAudioDevicePropertyNominalSampleRate : server will quit...");
jack_error("Cannot handle kAudioDevicePropertyNominalSampleRate, new SR = %f : server will quit...", new_sample_rate);
driver->NotifyFailure(JackBackendError, "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(); driver->CloseAUHAL();
kill(JackTools::GetPID(), SIGINT); kill(JackTools::GetPID(), SIGINT);


Loading…
Cancel
Save