mp3s sampled at rates other than 44.1KHz will play properly now (fixes issue #170)

This commit is contained in:
Bill Meltsner
2011-01-15 14:32:02 -06:00
parent 4479e8dfc4
commit a6a1e91976
@@ -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)