BASS.NET API for the Un4seen BASS Audio Library

BroadCastAutoConnect Method

BASS.NET API for the Un4seen BASS Audio Library

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

public bool AutoConnect()

Return Value

Type: Boolean
on success, else (see LastError or LastErrorMessage for details).
Remarks

If the Server has set the UseBASS flag to , the Server will handle any communication via BASS_Encode_CastInit(Int32, String, String, String, String, String, String, String, String, Int32, BASSEncodeCast).

If the Server has set the UseBASS flag to , the following will be handled:

Prior to the Connect an internal encoder callback will be created.

The internal encoder callback is created using Start(ENCODEPROC, IntPtr, Boolean). This internal callback will already handle the SendData(IntPtr, Int32), StartEncoder(ENCODEPROC, IntPtr, Boolean) and StopEncoder automatically for you.

If already connected, this method will first Disconnect from the Server, which might result in stopping the underlying BaseEncoder.

If the channel handle (as defined in the ChannelHandle) is already playing, it will be shortly paused during the setup and resumed when done.

Please note, that some methods should NOT be used, if in automatic mode: Connect, StartEncoder(ENCODEPROC, IntPtr, Boolean), StopEncoder and SendData(IntPtr, Int32)!

Note: If you have set the AutoReconnect property to this call will automatically try to reconnect even if this method returns !

See Also

Reference