diff --git a/libs/backends/coreaudio/coreaudio_backend.cc b/libs/backends/coreaudio/coreaudio_backend.cc index 2ccc1fbcb7..09bab52469 100644 --- a/libs/backends/coreaudio/coreaudio_backend.cc +++ b/libs/backends/coreaudio/coreaudio_backend.cc @@ -1715,6 +1715,12 @@ CoreAudioBackend::buffer_size_callback () void CoreAudioBackend::sample_rate_callback () { + if (_preinit) { +#ifndef NDEBUG + printf("Samplerate change during initialization.\n"); +#endif + return; + } _pcmio->set_error_callback (NULL, NULL); _pcmio->set_sample_rate_callback (NULL, NULL); _pcmio->set_xrun_callback (NULL, NULL);