mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +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);
|
int ret = mpg123_getformat(handle, &rate, &channels, &encoding);
|
||||||
if (rate == 0)
|
if (rate == 0)
|
||||||
rate = sampleRate;
|
rate = sampleRate;
|
||||||
|
else
|
||||||
|
sampleRate = rate;
|
||||||
if (channels == 0)
|
if (channels == 0)
|
||||||
channels = MPG123_STEREO;
|
channels = MPG123_STEREO;
|
||||||
if (encoding == 0)
|
if (encoding == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user