n = HaveFreeChannel()
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.