Audio functions
demonstration of how to apply functions to all Audios. In theory the principles used could be used for any group of objects.
- Tutorial
- Portable
Description
This mscape contains two functions, which fade out and pause all playing audio clips and fade in all paused audio clips respectively. To achieve this the functions iterate through all audios (including those in folders), checks their current status and carries out an action where appropriate. See comments in code for an explanation.
Function calls have been placed on the up and down button events.
Audio courtesy of freesound.org. See readme in content folder for details.
Setup instructions
This demo relies on the Functions tool in the 2.5.3349 release, so won't work in earlier versions of the toolkit. The functionality could easily be duplicated in older versions of mscape by placing the code on Timers with a Period of 0. If you don't have the 2.5.3349 release installed just open the .msl file in a text editor and find the code ;)
Credits
blindifsh
Comments