Name
SetChannelAttributes -- change audio channel attributes (V6.0)
Synopsis
int error = SetChannelAttributes(APTR handle, APTR chandle,
                struct hwTagList *tags);
Function
This function must change attributes of the specified audio channel. Attributes are passed as a taglist. The following attributes may currently be changed:

HWSCATAG_VOLUME:
Change the channel's volume to the volume specified in the iData member of this tag item. Volumes are specified in the range of 0 (mute) to 64 (full volume).

HWSCATAG_PANNING:
Change the channel's panning value to the value specified in the iData member of this tag item. Panning values range from 0 (left speaker only) to 255 (right speaker only). The default panning is 128 which means centered audio output.

HWSCATAG_PITCH:
Change the channel's pitch to the value specified in the iData member of this tag item. The pitch value specifies the number of PCM frames that are to be played per second.

Inputs
handle
audio device allocated by OpenAudio()
chandle
audio channel allocated by AllocAudioChannel()
tags
taglist containing attributes to modify (see above)
Results
error
error code or 0 for success

Show TOC