BASS.NET API for the Un4seen BASS Audio LibraryBassWmaBASS_WMA_EncodeGetPort Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the network port for clients to connect to.

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

[DllImportAttribute("basswma.dll", CharSet = CharSet.Auto)]
public static int BASS_WMA_EncodeGetPort(
	int handle
)

Parameters

handle
Type: SystemInt32
The encoder handle.

Return Value

Type: Int32
If succesful, the port number is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

If you have choosen to let the system select a port (e.g. in your BASS_WMA_EncodeOpenNetwork(Int32, Int32, BASSWMAEncode, Int32, Int32, Int32) or BASS_WMA_EncodeOpenNetworkMulti(Int32, Int32, BASSWMAEncode, Int32, Int32, Int32)), this is the function to retrieve the port actually being used.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe encoder is not a network encoder, so no port is being used.

See Also

Reference