Fix misnamed variable in audio code

Unfinished renaming
This commit is contained in:
John Lorentzson 2025-04-24 21:09:24 +02:00
parent 6c04e37864
commit 15f4d74698

View file

@ -43,7 +43,7 @@ static inline int soundWait() {
int previousEOF = audioInfo.play.eof;
while(audioInfo.play.eof - previousEOF < 1) {
if(playedNow >= buffersWritten) {
if(previousEOF >= buffersWritten) {
Backend_PrintError("Audio overflow.\n");
break;
}
@ -52,7 +52,7 @@ static inline int soundWait() {
ioctl(sndfp, AUDIO_GETINFO, &audioInfo); // Get the new current EOF
}
return playedNow;
return previousEOF;
}
static inline void feedOutSound(long* mix) {