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 

Music in lua game

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



Joined: 14 May 2007
Posts: 3

PostPosted: Mon May 14, 2007 4:50 am    Post subject: Music in lua game Reply with quote

Hi there!

Im trying to make a lua game..and it works all fine,but i dont know how to add music:(nothing works,ive tried mp3 wav and other..ive seen in bruce lua the extension is IT and in sonic battle arena its S3m,ive tried with these extensions but still doesnt work..please i need help^^

Thanks^^
Back to top
View user's profile Send private message
Anti-QJ



Joined: 03 May 2007
Posts: 16

PostPosted: Mon May 14, 2007 11:23 am    Post subject: Reply with quote

Here's the formats you can use:
UNI, IT, XM, S3M, MOD, MTM, STM, DSM, MED, FAR, ULT or 669.

Music.playFile(song.IT, true)
true will make it loop, false will make it stop once its finished.

Music.pause()
Music.stop()
Music.resume()
Music.playing()
Music.volume( 1-128 )
Back to top
View user's profile Send private message
miumiu



Joined: 14 May 2007
Posts: 3

PostPosted: Mon May 14, 2007 6:32 pm    Post subject: Reply with quote

Thank you very much:)

EDIT: Doesnt work..dont know why..ill make the extension with goldwave,do i have to convert them??

Sorry for my bad english,lol,
Back to top
View user's profile Send private message
Altair



Joined: 20 May 2006
Posts: 76
Location: The Netherlands

PostPosted: Mon May 14, 2007 11:21 pm    Post subject: Reply with quote

yep you have to convert them. You can use modplug or something like that to do it, but I never really got it to work. Best thing you can do is download music in mod format from http://modarchive.org/index_1.php.
Back to top
View user's profile Send private message
miumiu



Joined: 14 May 2007
Posts: 3

PostPosted: Tue May 15, 2007 2:05 am    Post subject: Reply with quote

modplug doesnt converts to these extensions..:( and i want my own music someone know a good converter??
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 Lua Player 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