Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

getChannelStatus()

Purpose

Find the status of an audio channel

Description

Check to see if audio is being played from a given channel

Syntax

status = getChannelStatus( channel )

Arguments

channel audio channel from 0 to 15

status status of the channel (in use or not)

Example

handle = loadAudio( "David Silvera/jingle_level_complete_03" )
volume = 0.5
pan = 0.5
speed = 1
playAudio( 0, handle, volume, pan, speed, 0 )
start = time()
elapsed = 0
// wait for audio to finish
status = getChannelStatus( 0 )
while status loop
    clear()
    now = time()
    elapsed = now - start
    printAt( 0, 0, elapsed )
    update()
    status = getChannelStatus( 0 )
repeat
printAt( 0, 1, "Finished" )
update()
sleep( 3 )

Associated Commands

audioLength(), loadAudio(), note2Freq(), playAudio(), playNote(), 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.