BASS.NET API for the Un4seen BASS Audio LibraryBassWasapiHandlerAddOutputSource Method BASS.NET API for the Un4seen BASS Audio Library
Adds a new source to the WASAPI handler for output.

Namespace: Un4seen.BassWasapi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public bool AddOutputSource(
	int channel,
	BASSFlag flags
)

Parameters

channel
Type: SystemInt32
The decoding stream to add to the output (must be a decoding channel).
flags
Type: Un4seen.BassBASSFlag
The speaker flags to use with the channel (use BASS_DEFAULT or any of the BASS_SPEAKER_xxx flags).

Return Value

Type: Boolean
On success is returned, else will be returned (use BASS_ErrorGetCode to retrieve the error code).
Remarks

In case the Wasapi handler is used for output an InternalMixer is always internally created in order to handle possible resampling. You might use this method to add new source channels to this internal mixer in order to play them to the output.

Note, that the following flags will be added automatically as necessary: BASS_MIXER_DOWNMIX (in case you don't provide any speaker flags), BASS_MIXER_FILTER (in case the channel's sample rate doesn't match the SampleRate).

See Also

Reference