Make sure to stop ALSA playback when the backend stops

This commit is contained in:
Chris Robinson
2020-12-12 15:10:25 -08:00
parent e179bf0a12
commit bb597546e1
+3
View File
@@ -840,6 +840,9 @@ void AlsaPlayback::stop()
mThread.join();
mBuffer.clear();
int err{snd_pcm_drop(mPcmHandle)};
if(err < 0)
ERR("snd_pcm_drop failed: %s\n", snd_strerror(err));
}
ClockLatency AlsaPlayback::getClockLatency()