fix: Invalid data is assigned to the right channel when playing a mono MP3. (#559)

This commit is contained in:
lovyan03 authored and GitHub committed 2022-09-04 13:27:05 -07:00
1 parent f95f15fcb3
commit 46b36574ed
1 file changed
+4
+4
View File
@@ -248,6 +248,10 @@ retry:
running = false;
goto done;
}
if (lastChannels == 1)
{
lastSample[1] = lastSample[0];
}
} while (running && output->ConsumeSample(lastSample));
done: