Commit d85cb284 authored by sletz's avatar sletz
Browse files

Fix jack_set_sample_rate_callback to have he same bevahior as in JACK1.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3677 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 801541e0
......@@ -28,6 +28,7 @@ Paul Davis
2009-10-26 Stephane Letz <letz@grame.fr>
* Implement "hog mode" (exclusive access of the audio device) in JackCoreAudioDriver.
* Fix jack_set_sample_rate_callback to have he same bevahior as in JACK1.
2009-10-25 Stephane Letz <letz@grame.fr>
......
......@@ -874,6 +874,9 @@ int JackClient::SetSampleRateCallback(JackSampleRateCallback callback, void *arg
GetClientControl()->fCallback[kSampleRateCallback] = (callback != NULL);
fSampleRateArg = arg;
fSampleRate = callback;
// Now invoke it
if (callback)
callback(GetEngineControl()->fSampleRate, arg);
return 0;
}
}
......
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