forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mp3 playback problem [resolved]

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sturatt



Joined: 13 Jul 2006
Posts: 46

PostPosted: Fri Aug 18, 2006 4:36 pm    Post subject: mp3 playback problem [resolved] Reply with quote

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?action=download&ufid=F6A05A78137887AD (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
Back to top
View user's profile Send private message
dsn



Joined: 09 Nov 2005
Posts: 47
Location: Indianapolis, Indiana, USA

PostPosted: Sun Aug 20, 2006 3:56 am    Post subject: Reply with quote

I get a 404 Not Found when I try to view your source. Can you post your code here in the forum?
Back to top
View user's profile Send private message Send e-mail
sturatt



Joined: 13 Jul 2006
Posts: 46

PostPosted: Sun Aug 20, 2006 1:00 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group