Fix misnamed variable in audio code
Unfinished renaming
This commit is contained in:
parent
6c04e37864
commit
15f4d74698
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ static inline int soundWait() {
|
||||||
int previousEOF = audioInfo.play.eof;
|
int previousEOF = audioInfo.play.eof;
|
||||||
|
|
||||||
while(audioInfo.play.eof - previousEOF < 1) {
|
while(audioInfo.play.eof - previousEOF < 1) {
|
||||||
if(playedNow >= buffersWritten) {
|
if(previousEOF >= buffersWritten) {
|
||||||
Backend_PrintError("Audio overflow.\n");
|
Backend_PrintError("Audio overflow.\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ static inline int soundWait() {
|
||||||
|
|
||||||
ioctl(sndfp, AUDIO_GETINFO, &audioInfo); // Get the new current EOF
|
ioctl(sndfp, AUDIO_GETINFO, &audioInfo); // Get the new current EOF
|
||||||
}
|
}
|
||||||
return playedNow;
|
return previousEOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void feedOutSound(long* mix) {
|
static inline void feedOutSound(long* mix) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue