User Tag List

Results 1 to 7 of 7

Thread: Way to properly embed, encrypt, or hide lots of external audio files

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Way to properly embed, encrypt, or hide lots of external audio files

    Hi everyone,

    I have a game that is almost complete, and I am having one major issue. The game uses hundreds of audio files, which are currently in an external sub-folder called "audio". I play these files via a fastloop called "play_sound", and I define the audio I want to play with a string called "current_sound", which is changed via a custom scripting language my game uses. So the actual Play Sample File command calls Apppath$ + "audio\" + current_music.

    The problem is, a lot of the audio that I use is royalty free, and the licensing agreement of the files states that the audio must be embedded within the application. Given this, I am trying to find the smartest way to embed, encrypt, or hide the audio.

    To my knowledge, I cannot use the "include external files" option, because I do not call specific filenames with Play Sample File. If I am understanding how Fusion works, "include external files" will not detect the files I need to include.

    I'm not sure whether adding the audio as binary data would be applicable here. If this is an option, could someone please walk me through the process? Specifically, I am confused about whether I need to call absolute file paths with binary data or if it will work as I currently have it set up.

    If there is another available option, please let me know. If you have any questions or need more detail, I am happy to provide.

    Thanks in advance for your time and help.

  2. #2
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Using the binary data tool will let you embed the sounds in the application. The caveat is that you need to extract them manually before use, but there's this guide here which helped me understand:

    http://download.clickteam.com/tutorials/en/binary-data.pdf


    When using this is it very important to test your built application on another computer, it's easy to get it wrong and *think* you have done things right, but instead are just loading the non-embedded files.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some objects don't need extracting. I'm not sure if sounds fall into that category, but I guess it could depend on whether you use an extension to play the files or fusion's built-in audio player. There's some more info on it in this thread:

    http://community.clickteam.com/threads/93617-Binary-Data-Managment-Extract-Release-All

  4. #4
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If I recall correctly anything called via custom scripting, like described, would need to extract the file. Not sure though - let us know what conclusion you come to!

  5. #5
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    971
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can also use a Win / Ogg / Wav / MP3 converter (there are many out there for free) to convert your music into .oggs and embed them into your MFA (that's what I do myself).

    Another bonus is the small filesize of your average .ogg.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So encripting audio files is possible with Fusion, or not?
    (Maybeits possible indirectly by calling an external script or something )

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the responses, everyone. I've done some testing and, as PBarwick predicted, I will need to extract the files for the audio. I've learned how to do this, and I will be implementing it shortly. Thanks again!

Similar Threads

  1. Using/Including External Audio and Data Files
    By butterfingers in forum XNA Export Module Version 2.0
    Replies: 0
    Last Post: 15th September 2014, 11:23 AM
  2. The ins and outs of external audio files?
    By Gimbabwe in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th February 2013, 11:15 PM
  3. Hide/encrypt and unhide/decrypt several OGG files
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 12th January 2010, 07:43 PM
  4. Built Apps don't load external files properly
    By MelliGeorgiou in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th March 2007, 04:08 PM

Posting Permissions

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