Creates an instance for an WMAcast configuration parameter setting.
Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- encoder
- Type: Un4seen.Bass.MiscIBaseEncoder
The output encoder instance to be used (must be of type EncoderWMA).
Exceptions
Exception | Condition |
---|---|
ArgumentException | Invalid EncoderType (only OGG, MP3 and AAC is supported)! |
ArgumentNullException | Invalid Encoder used, encoder must be of type EncoderWMA! |
Remarks
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
// 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