зеркало из https://github.com/mozilla/cubeb.git
audiounit: don't reinit stream on datasource event
This commit is contained in:
Родитель
1284f9679a
Коммит
dd746a33bd
|
@ -680,11 +680,8 @@ audiounit_property_listener_callback(AudioObjectID /* id */, UInt32 address_coun
|
|||
break;
|
||||
case kAudioDevicePropertyDataSource: {
|
||||
LOG("Event[%u] - mSelector == kAudioHardwarePropertyDataSource", (unsigned int) i);
|
||||
if (has_output(stm)) {
|
||||
stm->output_device = 0;
|
||||
}
|
||||
return noErr;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
LOG("Event[%u] - mSelector == Unexpected Event id %d, return", (unsigned int) i, addresses[i].mSelector);
|
||||
return noErr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче