Music in lua game

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
miumiu
Posts: 3
Joined: Mon May 14, 2007 4:39 am

Music in lua game

Post by miumiu »

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^^
Anti-QJ
Posts: 16
Joined: Thu May 03, 2007 2:34 pm

Post by Anti-QJ »

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 )
miumiu
Posts: 3
Joined: Mon May 14, 2007 4:39 am

Post by miumiu »

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,
Altair
Posts: 76
Joined: Sat May 20, 2006 2:33 am
Location: The Netherlands

Post by Altair »

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.
miumiu
Posts: 3
Joined: Mon May 14, 2007 4:39 am

Post by miumiu »

modplug doesnt converts to these extensions..:( and i want my own music someone know a good converter??
Post Reply