User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Sample's wont play when i build .exe!

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sample's wont play when i build .exe!

    Hello!

    My app uses the "Play and loop a sample file on a specific channel" command. I set it to play on channel 32 and everything works fine.

    It gets the sample using this line : "Appdrive$+Appdir$+"\Data\Sound\"+"MySong.ogg" **

    And it works fine for all the song and all the different sound effects used in the game when i test it from within MMF2.

    BUT when i build an exe file and run it it wont work. Its completely silence. Not even a sound effect will play. Im sure the exe is placed at the correct directory and all. Its in the directory wich leads to \Data\Sound\. Also the soundeffects are assigned to different channels.

    Any clue of why this might happens?

    Cheers!

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    Yeah this bug has been annoying me for ages. Not your fault at all, it's an MMF2 bug.

  3. #3
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    Oh, really. Im glad to hear that. Now i at least know whats causing it. It has bothered you for ages? It bothers me right now. Hmm, time to ask Yves to fix it?

    So, if you, Yves, read this post?
    Is this somthing you could look into?

    Cheers!

  4. #4
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    Sound Filters Problem I'd guess.

  5. #5
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    So the only workaround is to include the sample file into the .exe. Wich is not acceptable in my app cause i want the player to be able to import his own sounds/music.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    When a sample's referred to by name as an external file, MMF2 doesn't know to include its sound filter, as Dragonguy hinted at - to fix it, go into your application properties, find the sound filters, uncheck "Automatic" and select the ones you need.

    I was fairly sure that Mechabowser already knew the solution, as this comes up a lot - but if not, this should work for you, too.

  7. #7
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    Oh, it was that easy! Now it works perfectly! Thanx David!

  8. #8
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    Oh. That's actually kinda silly.

    Thanks aswell, I guess!

  9. #9
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    Try getting rid of the Appdrive$ in the beginning. I never use it, and Appdir$ works fine.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Sample's wont play when i build .exe!

    It's easier to just use Apppath$ than Appdrive$ + Appdir$.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. MMF2 wont build
    By HyperspazzMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th November 2009, 08:45 PM
  2. Please Help! MIDI file wont play
    By samdaman719 in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 11th July 2008, 04:59 PM
  3. MMF2 STAND-ALONE wont build!!!!! :((((
    By uncleswell in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd February 2007, 12:31 PM
  4. play sample when another sample has finished?
    By edward in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th October 2006, 02:55 PM
  5. Order of "play sample" and "set sample volume".
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th September 2006, 07:07 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
  •