User Tag List

Results 1 to 8 of 8

Thread: how to add .mp3 or .wav music to a game

  1. #1
    No Products Registered

    Join Date
    Sep 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to add .mp3 or .wav music to a game

    I am trying to help my young son add music to a game. He found a MIDI music file that came loaded with MMF2 and successfully added it to a game. But he wants to add other music and the only format we have is mp3 or WAV. However, when we try Event Editor->Speaker icon->Music->Play and loop music-> Browse for file->open our WAV or mp3 file and set Repeat Count to 'O' for continuous, we get only silence in the game. To make sure it was the file type only, we tried subbing the mp3 and WAV files in the game that successfully played the MIDI file, but still only silence. We also tried the "Play and loop music file" choice as well, but it also did not work (can't say I know what the difference is anyway). Seems that MMF2 really should work with all common music file types....what are we doing wrong?

  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    Instead of going to music->play and loop music, go to sample->play and loop sample. This will allow you to play WAV files. mp3s are not supported by MMF2, but if you convert them to ogg or WAV format, you will be able to play them.

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    You can play mp3 files using the DirectShow Extension.

  4. #4
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    Oh yeah, I forgot to mention that

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    ZayLong's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    but you have to include the .mp3s and .wavs in the package when you turn the game into an .exe cuz if you just put it on another computer to play, the music wont work.

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,824
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    Well you do need to be considerate of the paths and install the music with your EXE if your using external media elements.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Location
    Eureka, CA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    Though if you set the file source to not include the path but just the relative path, then this makes the game programming go a lot smoother.

    "music/file.mp3" vs. "c:/user/games/music/file.mp3"


  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to add .mp3 or .wav music to a game

    If you actually have wav files, you should convert them to ogg vorbis with audacity.

    Ogg vorbis is similar to mp3 but it sounds a bit better (if you compare ogg vs mp3 on the same bitrates) and it's a free format, meaning software developers never need to pay a license to use it. Ogg files plays directly within MMF2 using the "play sample" action.

Similar Threads

  1. Music in iOS game
    By WhatPixelYouOn in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 19th August 2012, 01:54 PM
  2. My game was rejected because game music plays over phone music
    By leuvsion in forum XNA Export Module Version 2.0
    Replies: 18
    Last Post: 1st August 2012, 06:49 PM
  3. Music For My Game
    By ElectricMaster in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd March 2012, 01:57 PM
  4. Managing game music help
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 31st August 2009, 10:51 AM

Posting Permissions

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