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:
parent
d39060e1c4
commit
4034f1b55b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user