User Tag List

Results 1 to 4 of 4

Thread: Audio Channel Pointer: For individual handeling of Sample Instances

  1. #1
    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)

    Audio Channel Pointer: For individual handeling of Sample Instances

    I created the Audio Channel Pointer concept with some simple MMF2 code ( 2 Events, 1 Object, 1 loop ).

    When you have Samples that you know will overlap itself, and you need to set any of Volume, Position or Pan seperatly for each Sample Instance, the Audio Channel Pointer comes in handy.

    - What you do is run the ACP loop before you play the Sample ( Same Event )
    - The ACP loop runs through all of MMF2s Audio Channels ( 32 ), and remembers the first empty Audio Channel ( this is the Channel your Sample will be playing on )
    - Now you know which Channel your Sample is being played on, and you can referr to this Channel ( Same Event ) to correctly change the Sample Instances Position, Volume or Pan.

    ...
    Why not use 'Set Sample Volume/ Set Sample Position/ Set Sample Pan' you may ask.
    Well, when using any of the above MMF2 finds the first Channel playing the specific Sample, and applies the action only to that Channel.
    This means, if you have:

    Uppon pressing SPACE
    - Play Sample BOOM
    - Set Volume of Sample BOOM to 0

    And press SPACE 3 times ( so that the Samples overlap ), you will hear 2 BOOMs since only the first one is ever being muted.

    ...

    THE ACP EXAMPLE
    - Press SPACE to play Sample "Dragster", and set random Volum and Pan.
    Attached files Attached files

  2. #2
    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)
    Or alternatively, just use my evented sound wrapper which deals with this beautifully and many, many more things. Unfortunately, due to MMF2's lack of the ability to create custom conditions, actions, and expressions I can not provide this in a beginner-friendly solution.

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nifflas View Post
    Unfortunately, due to MMF2's lack of the ability to create custom conditions, actions, and expressions I can not provide this in a beginner-friendly solution.
    Don't worry, Nifflas, I've been working on that extension for a while now. I even had to make Structured Data object to make it possible to create the program that lets you set it up
    Working as fast as I can on Fusion 3

  4. #4
    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)
    Feature wise my sound wrapper doesn't need more features e.g. data/storage stuff. Only custom ACEs so it won't have to be operated though alterable values. Really looking forward to the release of that tho.

Similar Threads

  1. Channel / Sample Volumes
    By Danny in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 20th March 2013, 08:35 PM
  2. Requst: Audio Channel Index Pointer
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th November 2012, 11:25 AM
  3. Sample / Channel Frequency
    By Danny in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 1st September 2012, 09:55 AM
  4. Get Sample on Channel?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th June 2012, 04:22 AM
  5. Acting on object instances on an individual basis
    By Fisholith in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th November 2007, 10:40 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
  •