User Tag List

Results 1 to 6 of 6

Thread: String storage and sound caching

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    String storage and sound caching

    Two problems... guess i first should explain what i'm making...
    I'm making a music game, you basically play music... and all the instruments are external WAV files (or OGG) and everything works just fine, i play the instruments and the sound effect is played (not using any extension for the sounds, just normal "Play Specific Sample in Channel" or something like that), but when there's 5-6+ keys pressed at the same time the game stops for a few milliseconds and then continues as normal.
    I've done some testing and it seems that the WAV files aren't cached. So i'm wondering if there's an extension that can load WAV files into the memory and then play them once needed?

    Also, is there a way to store strings in an array with instead of X and Y positions the slots are named.
    Normal array is like 'X10, Y5 = "Hello!"', what i need is something like 'Text="Hello!"'.
    I've tried using the alterable string on an active object but there are too few slots.
    Anyways hope i explain my problems good enough!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: String storage and sound caching

    you could just put all the samples into a list object and save that list file. I made a pretty cool app called minisynth 2 a while ago I also coded in a simple recording function to save tunes played with it. I think every 5th of a second a new line was rwitten and if a key was pressed then it put that key in the list.
    Check it out on my website.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: String storage and sound caching

    Yeah well i've stored all the samples in a list, but that's just the names, i want the actual file to be stored.
    The game also plays background music which is also played with the ingame instruments so there are lots of WAVs being loaded all the time, i need to load the WAVs once and be able to replay them whenever needed.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: String storage and sound caching

    Data storage: Named variable object, INI or XML.
    Pre-caching external files: I don't think so.
    .:::.Joshtek.:::.

  5. #5
    No Products Registered

    Join Date
    Sep 2006
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: String storage and sound caching

    Cheers mate, the Named variable object was perfect. (How could i have missed it? -_-)
    But the biggest problem is still the lag when playing a lot of sound effects. In MMF1.5 there was an extension named something like Direct Sound 2 or whatever, and it could load sounds into slots and then play them when needed so they were cached and ready when used and lag-free. :P
    Nothing like that released for MMF2? (Or on its way)

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: String storage and sound caching

    Nothing like that released for MMF2? (Or on its way)
    Just for info, a "Preload sample" action is in the todo list for a future build, but this list is so huge, I don't know when it will be done. :crazy:

Similar Threads

  1. Turn Webview caching off?!
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 9th March 2012, 02:09 PM
  2. Text/String - Typing sound effect how?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 24th September 2011, 11:16 PM
  3. Active Picture caching
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th November 2010, 09:37 PM
  4. High Scores object -- caching?
    By JohnC in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th November 2010, 09:38 AM
  5. Pre-caching
    By bkfitww in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th December 2006, 02: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
  •