Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

playAudio()

Purpose

Play an audio track

Description

Play the specified audio track at the specified volume, pan and speed on the specified channel

Syntax

playAudio( channel, handle, volume, pan, speed, loops )

Arguments

channel audio channel from 0 to 15

handle handle of the audio sample from loadaudio

volume volume from 0 to 1

pan stereo pan from left (0) to right (1)

speed speed mutiplier (1 is normal speed)

loops number of times to repeat (-1 is forever)

Example

handle = loadAudio( "David Silvera/music_evil_presence" )
volume = 0.5
pan = 0.5
speed = 1
playAudio( 0, handle, volume, pan, speed, -1 )
loop
    update()
repeat  

Associated Commands

audioLength(), getChannelStatus(), loadAudio(), note2Freq(), playNote(), setClipper(), setFilter(), setPan(), setVolume(), startChannel(), stopChannel()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.