Helix MP3 decoder

OP #1173940
Hi, this might be a little off topic, but since there is an MP3 player
project on this website using Helix, I thought someone might know the
answer.  In summary, Helix won't play many MP3 files.  I have 1 or two
out of several I've tested that will play, but the others never seem to
find sync or have invalid frame headers.

As I'm watching what is occurring thru a debug session, normally what
happens is MP3FindSyncWord returns a non-zero offset value a few times,
MP3Decode will return ERR_MP3_MAINDATA_UNDERFLOW or
ERR_MP3_INVALID_FRAMEHEADER a few times, then it starts decoding and
spitting out PCM.  However, with some MP3 files, MP3FindSyncWord returns
offset values of a few 10's to several hundred, and MP3Decode returns
ERR_MP3_INVALID_FRAMEHEADER over and over again.  It's like the file
format is incorrect, but these files play fine on my computer with
Winamp.

Any idea what is going on?  I've tried taking pieces of MP3's near the
middle of the file, but it won't sync on these, either.

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.