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.17.5
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: Int32If successful, the new stream's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Seeking is only possible once the entire file has been downloaded.
See Also