Skip to content

Commit

Permalink
Fix truncation of total seconds in QOA song length
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Jul 1, 2023
1 parent 8312496 commit 60d34db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XNA_Song.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ FAUDIOAPI float XNA_PlaySong(const char *name)
}
else if (activeQoaSong != NULL)
{
return qoaTotalSamplesPerChannel / qoaSampleRate;
return qoaTotalSamplesPerChannel / (float) qoaSampleRate;
}

return 0;
Expand Down

0 comments on commit 60d34db

Please sign in to comment.