Commit 80471025 authored by Max Kellermann's avatar Max Kellermann

output/osx: don't restart AudioUnit at the end of Cancel()

We shouldn't restart the AudioUnit while the ring buffer is empty, or else our render callback may emit noise. Closes https://github.com/MusicPlayerDaemon/MPD/issues/771
parent fe5b81e1
......@@ -9,6 +9,7 @@ ver 0.21.25 (not yet released)
- opus: fix memory leak
* output
- osx: improve sample rate selection
- osx: fix noise while stopping
* Windows/Android:
- fix Boost detection after breaking change in Meson 0.54
......
......@@ -831,7 +831,8 @@ OSXOutput::Cancel() noexcept
#ifdef ENABLE_DSD
pcm_export->Reset();
#endif
AudioOutputUnitStart(au);
/* the AudioUnit will be restarted by the next Play() call */
}
int
......
Markdown is supported
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