Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Need LUA Advice

                  
   
  1. #1

    Default Need LUA Advice

    Well im making this game.
    And I have many mp3s and wavs and atracs.
    But I need them to be played in lua player.
    Whats a good program to convert them to mod xm it and etc.

    PLEASE HELP
    FAST

  2. #2
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    AFAIK, you can't since it is a completely different format. And please, stop cross posting in other threads.

  3. #3

    Default

    Then how to you get music for lua.

  4. #4

    Default

    And you can convert anything now a days with the right programs.
    So what are you saying its impossible to make xm and mods it dont lie. Because every lua game has them.

  5. #5
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    No, I said you cannot CONVERT mp3/wav to MODs etc which was the question YOU asked. It is possible to create mods, xm and its. You can convert mods/etc to mp3/wav but not the other way round. It is a COMPLETELY different audio format.

    Mp3 is a compression format of signal based data (aka WAV is the raw format). MODs etc are based on trackers, they have a set of instruments and are played at different notes in set intervals.

  6. #6
    DCEmu Newbie
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    24
    Rep Power
    0

    Question

    just a little question by the way:
    is there a function to play wav files or not?


    so, if there is one, you can use SUPER :
    http://www.erightsoft.com/SUPER.html

  7. #7
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    I thought there was although I can't find any supporting documentation on it. There is a 1 mb file limit size and WAVs are huge.

  8. #8
    DCEmu Newbie
    Join Date
    Feb 2006
    Posts
    92
    Rep Power
    0

    Default

    Wav files (PCM encoded) are capable of being played by Luaplayer outright.

    Despite what you were told earlier, it IS possible to convert an mp3 to an .it file. You can, just not directly.

    You'd have to take your mp3 file and convert it to a .wav file (a nice, free program is SimpleJ). Then, you can use Modplug Tracker to convert that into an .it file (which supposedly plays better in Lua than .wav files for music).

    However, this conversion does not shrink the filesize, which can be considerbly large. If you want to use music, I suggest you try to make it loopable and no longer than 30 seconds per level. Also, use the Sound Recorder program on your PC to fiddle with settings (lowering bitrate and whatnot) to help shrink the filesize (though at a loss of quality).

    Good luck!

  9. #9
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    I though IT was a tracker format, how does modplug convert a signal based format to a tracker one? Unless it approximates the sound with the soundbanks and instruments.

    Edit: Just read up on thE IT format, am I right in saying that it supports WAV samples and uses it in the same way as its instrument banks?

    Edit: Looks like I am completely wrong about the format and it is possible to use WAV samples in MOD, IT etc formats. However as Sumo X said, it will still be the same size (maybe larger) then the original file due to the nature of how these formats work.

  10. #10
    DCEmu Newbie
    Join Date
    Feb 2006
    Posts
    92
    Rep Power
    0

    Default

    I'm not sure how it works- I just know it does! It's the exact same music as well.

    The link for Modplug tracker is here: http://www.modplug.com/

    Again, the WAV file has to PCM encoded, but any change in the khz, stereo/mono or bits is acceptable. The change from .wav --> .it does not affect the filesize, though, so you're really going to want to to work with altering the .wav file until you get it down to a filesize you like with an acceptable quality.

    Either that, or go petition Shine to get .ogg support for Luaplayer (it's been on his 'to do' list for ages )

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •