BASS.NET API for the Un4seen BASS Audio Library

BassAsioBASS_ASIO_ChannelGetVolume Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves a channel's volume setting.

Namespace:  Un4seen.BassAsio
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bassasio")]
public static float BASS_ASIO_ChannelGetVolume(
	bool input,
	int channel
)

Parameters

input
Type: SystemBoolean
Dealing with an input channel? = an output channel.
channel
Type: SystemInt32
The input/output channel number... 0 = first, -1 = master.

Return Value

Type: Single
If successful, the channel's volume setting is returned, else -1 is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Remarks

To set a channel volume use BASS_ASIO_ChannelSetVolume(Boolean, Int32, Single).

ERROR CODEDescription
BASS_ERROR_INITBASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.
BASS_ERROR_ILLPARAMThe input and channel combination is invalid.

See Also

Reference