Discussion:
[Audiere-users] Speed problems with sub-128 kbps MP3s
Ed Hall
2005-03-21 19:03:20 UTC
Permalink
Hi all-

I'm trying to write a music player for Windows using Audiere 1.9.3 and
have run into some problems. I'm hoping someone can point me in the
right direction to fix these as I'm a bit stuck at the moment...

The first problem is when I try playing some MP3 files that are encoded
at 32 kbps they play at four times their normal speed. This us both in
the wxPlayer.exe provided with Audiere and with my own barest-bones
player based on the Audiere simple.c sample code. Files encoded at 128
kbps and 192 kbps play at their normal speed.

I can solve this speed problem on the 32 kbps files by using
setPitchShift() to change the pitch from it's default of 1.0 to 0.5.
Although this makes the 32 kbps files play at their normal speed, it (as
one would expect) slows down the playback of 128/196 kbps files.

The other problem I've run into, and I don't know if it's related, is
that sound->isSeekable() always returns zero so I can't do anything fun
like get the track's length or current position as it plays.

Oh, and iTunes doesn't have any problems with any these tracks, so I
think I can rule out problems with the MP3 files themselves.

Any ideas?

Thanks!

-Ed

Loading...