BASS.NET API for the Un4seen BASS Audio LibraryBassMpcBASS_MPC_StreamCreateURL Method BASS.NET API for the Un4seen BASS Audio Library
Creates a sample stream from a MPC file on the internet, optionally receiving the downloaded data in a callback.

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

public static int BASS_MPC_StreamCreateURL(
	string url,
	int offset,
	BASSFlag flags,
	DOWNLOADPROC proc,
	IntPtr user
)

Parameters

url
Type: SystemString
URL of the file to stream. Should begin with "http://" or "ftp://".
offset
Type: SystemInt32
File position to start streaming from. This is ignored by some servers, specifically when the file length is unknown.
flags
Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag.
proc
Type: Un4seen.BassDOWNLOADPROC
Callback function to receive the file as it is downloaded... = no callback.
user
Type: SystemIntPtr
User instance data to pass to the callback function.

Return Value

Type: Int32
If successful, the new stream's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Works in the same way BASS_StreamCreateURL(String, Int32, BASSFlag, DOWNLOADPROC, IntPtr) does - so for details look there.

Seeking is only possible once the entire file has been downloaded.

See Also

Reference