Fix faulty PCM playback logic.
This commit is contained in:
parent
b793fa949f
commit
63391a3be6
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class ZsmBackend : public PlaybackBackend {
|
||||||
}
|
}
|
||||||
void audio_step(size_t samples) {
|
void audio_step(size_t samples) {
|
||||||
if (samples == 0) return;
|
if (samples == 0) return;
|
||||||
while (pcm_fifo_avail() < samples) {
|
while (remain != 0 && pcm_fifo_avail() < samples) {
|
||||||
if (pcm_read_rate() == 0) break;
|
if (pcm_read_rate() == 0) break;
|
||||||
if ((--remain) == 0) {
|
if ((--remain) == 0) {
|
||||||
if (islooped) {
|
if (islooped) {
|
||||||
|
|
Loading…
Reference in a new issue