BASS.NET API for the Un4seen BASS Audio LibraryWMAcast Constructor BASS.NET API for the Un4seen BASS Audio Library
Creates an instance for an WMAcast configuration parameter setting.

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

public WMAcast(
	IBaseEncoder encoder
)

Parameters

encoder
Type: Un4seen.Bass.MiscIBaseEncoder
The output encoder instance to be used (must be of type EncoderWMA).
Exceptions

ExceptionCondition
ArgumentExceptionInvalid EncoderType (only OGG, MP3 and AAC is supported)!
ArgumentNullExceptionInvalid Encoder used, encoder must be of type EncoderWMA!
Remarks

An instance of this class is needed in order to create a BroadCast instance.

Also take care of all neccessary patent and license issues when streaming or broadcasting!

The UseBASS property will in this implementation in any case be set to (since BASSwma is used internally).

Also the WMA_UseNetwork flag will always be forced and set to , as well as the InputFile will in any case be set to as well.

Examples

Creates an WMAcast configuration instance.
VB
' create an encoder instance
Dim wma As New EncoderWMA(_recHandle)
wma.WMA_Bitrate = CInt(EncoderWMA.BITRATE.kbps_64)
wma.WMA_UseNetwork = True

' now create the WMAcast instance
Dim wmacast As New WMAcast(wma)
wmacast.ServerPort = 8080
...
wma.Start(Nothing, IntPtr.Zero, True) ' start paused
wma.Connect()
wma.Pause(False) ' start encoding
Bass.BASS_ChannelPlay(_recHandle, False)
...
// create an encoder instance
EncoderWMA wma = new EncoderWMA(_recHandle);
wma.WMA_Bitrate = (int)EncoderWMA.BITRATE.kbps_64;
wma.WMA_UseNetwork = true;

// now create the WMAcast instance
WMAcast wmacast = new WMAcast(wma);
wmacast.ServerPort = 8080;
...
wma.Start(null, IntPtr.Zero, true); // start paused
wma.Connect();
wma.Pause(false); // start encoding
Bass.BASS_ChannelPlay(_recHandle, false);
...
See Also

Reference