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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user