NNS_SndStrmSetChannelVolume

Syntax

#include <nnsys/snd.h>
void NNS_SndStrmSetChannelVolume(
        NNSSndStrm* stream,
        int chNo,
        int volume );

Arguments

stream Pointer to a stream structure.
chNo The channel number.
volume Volume value. Units are 0.1dB. 0dB designates maximum volume.

Return Values

None.

Description

Changes the stream's channel volume.

The channel number chNo is the number of the currently streaming channel. The channel number chNo value is not directly related to the channel numbers assigned by how channels are mounted in the NITRO sound circuit. For example, if you allocate two channels with the NNS_SndStrmAllocChannel function, the first channel will be channel number 0, and the second channel will be channel number 1.

The default volume is 0dB. This effect of this volume value is independent from the NNS_SndStrmSetVolume value. The two values are cumulative.

See Also

NNS_SndStrmAllocChannel, NNS_SndStrmSetVolume

Revision History

2004/08/10 Initial version.


CONFIDENTIAL