mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
mp3s sampled at rates other than 44.1KHz will play properly now (fixes issue #170)
This commit is contained in:
@@ -116,6 +116,8 @@ namespace lullaby
|
||||
int ret = mpg123_getformat(handle, &rate, &channels, &encoding);
|
||||
if (rate == 0)
|
||||
rate = sampleRate;
|
||||
else
|
||||
sampleRate = rate;
|
||||
if (channels == 0)
|
||||
channels = MPG123_STEREO;
|
||||
if (encoding == 0)
|
||||
|
||||
Reference in New Issue
Block a user