| View previous topic :: View next topic |
| Author |
Message |
miumiu
Joined: 14 May 2007 Posts: 3
|
Posted: Mon May 14, 2007 4:50 am Post subject: Music in lua game |
|
|
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 |
|
 |
Anti-QJ
Joined: 03 May 2007 Posts: 16
|
Posted: Mon May 14, 2007 11:23 am Post subject: |
|
|
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 |
|
 |
miumiu
Joined: 14 May 2007 Posts: 3
|
Posted: Mon May 14, 2007 6:32 pm Post subject: |
|
|
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 |
|
 |
Altair
Joined: 20 May 2006 Posts: 76 Location: The Netherlands
|
Posted: Mon May 14, 2007 11:21 pm Post subject: |
|
|
| 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 |
|
 |
miumiu
Joined: 14 May 2007 Posts: 3
|
Posted: Tue May 15, 2007 2:05 am Post subject: |
|
|
| modplug doesnt converts to these extensions..:( and i want my own music someone know a good converter?? |
|
| Back to top |
|
 |
|