Name
HaveFreeChannel -- check if a free channel is available (V6.1)
Synopsis
n = HaveFreeChannel()
Function
This function checks if there is a free channel for audio output. If there is, HaveFreeChannel() will return the index of this channel, otherwise 0 is returned.

Note that if the legacy audio driver is active on AmigaOS (it is by default on AmigaOS 3.x for performance reasons) the first four channels will be reserved for Protracker playback. The console argument ‘-nolegacyaudio’ can be used to disable the legacy audio driver on AmigaOS 3.x. See console arguments for details.

Inputs
none

Results
n
index of free channel or 0 if all channels are currently occupied

Show TOC