1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-12-02 10:24:09 +03:00

Added a delay to processing listener statement on Sample Rate changes, since it's cleared listeners after re-subscribing

This commit is contained in:
Andrey Bezpalenko 2020-06-02 23:02:33 +03:00 committed by Roman Kisil
parent d39060e1c4
commit 4034f1b55b

View File

@ -325,10 +325,13 @@ class Application {
retain: false
) {
// selectOutput(device: selectedDevice)
stopListeners()
stopEngines()
self.matchDriverSampleRateToOutput()
createAudioPipeline()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
// need a delay, because emitter should finish it's work at first
stopListeners()
stopEngines()
self.matchDriverSampleRateToOutput()
createAudioPipeline()
}
}
selectedDeviceVolumeChangedListener = AudioDeviceEvents.on(