Commits

Bill Meltsner committed fdc8947

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

Comments (0)

Files changed (1)

src/modules/sound/lullaby/Mpg123Decoder.cpp

 					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)