mp3 playback problem [resolved]

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
sturatt
Posts: 46
Joined: Thu Jul 13, 2006 4:21 pm

mp3 playback problem [resolved]

Post by sturatt »

Im trying to get mp3 playback to work with libmad, but i cant for some reason. i can get the mp3 to play, and you can recognize it, but it just sounds funny. it sounds like parts of it are getting skipped, i dont get it.

http://rafb.net/paste/results/3ubQen72.html

i put my code up there so it would be easy to read, in case anyone has the chance to look over it. I realize that there will be a slight delay when reading in the new data while in the audio callback (ill fix that later with a second buffer and multithreading), but i dont think that's what is causing my problem (since the weird playback continues even when its working straight from the buffer).

ill post a compiled version so you can see what i mean by weird playback.
http://www.yousendit.com/transfer.php?a ... 78137887AD (to run it name an mp3 test.mp3 and put it in the root of the mem stick)

i really would appreciate anyone's help, ive been trying to get this working all day


Thanks,
Stuart
Last edited by sturatt on Sun Aug 20, 2006 1:08 pm, edited 1 time in total.
User avatar
dsn
Posts: 47
Joined: Wed Nov 09, 2005 11:48 am
Location: Indianapolis, Indiana, USA

Post by dsn »

I get a 404 Not Found when I try to view your source. Can you post your code here in the forum?
sturatt
Posts: 46
Joined: Thu Jul 13, 2006 4:21 pm

Post by sturatt »

nevermind, i figured it out. i was only putting in half the amount of samples (was counting each left and right byte as its own sample). stupid mistake.

thanks for trying to look though, i really do appreciate it
Post Reply