QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

help loading mp3 file in LUAHM5

This is a discussion on help loading mp3 file in LUAHM5 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; hi how do i load mp3 files in luahm5? i get an error saying wrong number of arguments. i cant ...

Reply
 
LinkBack Thread Tools
Old 03-30-2008, 03:42 PM   #1
 
linkinworm's Avatar
 
Join Date: Jan 2008
Posts: 256
Trader Feedback: 0
Default help loading mp3 file in LUAHM5

hi how do i load mp3 files in luahm5? i get an error saying wrong number of arguments. i cant test it because luaplayer for windows doesnt support the new updates yet heres what i put on the line
Code:
Mp3.load("01 Gears of War.mp3")
Mp3.play("01 Gears of War.mp3",true)
mp3.volume(128)
i have tried it with out the mp3.load option aswell same error, its exactly the same as when i used .it files except i used
Code:
Music.playFile("menu.it",true)
Music.volume(128)
linkinworm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-30-2008, 03:55 PM   #2
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

type up the EXACT errors. particularly including the :#: part
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-30-2008, 04:07 PM   #3
 
Join Date: Mar 2007
Posts: 755
Trader Feedback: 0
Default

I'm pretty sure it can only load 1 mp3 at a time, so you don't need arguments for the Mp3.play() function. Try that first.
__________________
[I][U]QJ took away my sig. :([/U][/I]
michaelp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-30-2008, 04:35 PM   #4
 
linkinworm's Avatar
 
Join Date: Jan 2008
Posts: 256
Trader Feedback: 0
Default

Quote:
Originally Posted by michaelp
I'm pretty sure it can only load 1 mp3 at a time, so you don't need arguments for the Mp3.play() function. Try that first.
if i only use Mp3.load() and remove the Mp3.volume() i can get into my menu, where i want the music, but it doesnt seem to play
is there a cap on the size of the mp3?
linkinworm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-30-2008, 09:46 PM   #5

 
Mr_Shizzy's Avatar
 
Join Date: Aug 2007
Posts: 567
Trader Feedback: 0
Default

Try using mp3me functions...
__________________
PSP MODEL: PSP SLIM 2000 TA-085v2
Custom Firmware: 5.50 GEN-D2
Mr_Shizzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-2008, 12:34 AM   #6

Developer
 
homemister91's Avatar
 
Join Date: Sep 2007
Location: AUS
Posts: 281
Trader Feedback: 0
Default

To load an mp3 do the following
1 Mp3.load("filepath/mp3name/mp3")
2 Mp3.play()
to stop Mp3.stop()
Mp3me functions
1 Mp3me.load("filepath/mp3name/mp3")
2 Mp3me.play()
to stop Mp3me.stop()
to pause Mp3me.pause()
Regards
homemister
__________________
Heres to the Wyvern,
Heres to getting Wyvern,
Heres to staying Wyvern,
And if you can't get Wyvern.......
You should become a kingsman!

http://arnold.hyperphp.com/ arnold, Light_AleX and my releases

homemister91 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-2008, 03:25 AM   #7
 
Join Date: Mar 2008
Posts: 32
Trader Feedback: 0
Default

I've never had luck using Mp3 Functions.. Mp3me worked fine though.

and your problem is Mp3.load("song.mp3") then do Mp3.play() not Mp3.play("song.mp3", true). Not saying that'll work.. but thats why it says wrong number of arguments
PiCkDaT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-2008, 08:10 AM   #8
 
linkinworm's Avatar
 
Join Date: Jan 2008
Posts: 256
Trader Feedback: 0
Default

YEA! thanks guys it works perfect now.
-= Double Post =-
WTF, yo guys theres something very wrong with one of the files that play, when i go into my main menu, the music will play for about 20 seconds, but then. the song will change to a song by linkinpark, i was like WTF, maybe its on my mem card, but no i dont have any linkinpark, i listened to the mp3 on my laptop, and its perfect. anyone able to help on this one?

Last edited by linkinworm; 03-31-2008 at 08:32 AM.. Reason: Automerged Doublepost
linkinworm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-2008, 01:56 PM   #9
 
Join Date: Mar 2008
Posts: 32
Trader Feedback: 0
Default

lmao.. that is fricken hillarious!!! I've never seen something like that.. its not possible because there is no built in MP3 with LuaPlayer HM 5.. wow.. that was great..
PiCkDaT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
file , loading , luahm5 , mp3

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 04:27 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us