C# Class xZune.Bass.Wma.WmaStream

A Windows Media Audio stream.
Inheritance: AudioStream
Show file Open project: higankanshi/xZune.Bass Class Usage Examples

Public Methods

Method Description
WmaStream ( BassStream bassStream, WmaStreamCreateConfig configs, StreamFileSystemType systemType ) : System

Create a sample stream from a WMA Bass stream.

WmaStream ( FileHandlers handlers, WmaStreamCreateConfig configs, StreamFileSystemType systemType, IntPtr user ) : System

Create a sample stream from a WMA file via user callback functions.

WmaStream ( MemoryStream stream, WmaStreamCreateConfig configs ) : System

Creates a sample stream from a WMA memory stream.

WmaStream ( Stream stream, WmaStreamCreateConfig configs, StreamFileSystemType systemType ) : System

Create a sample stream from a WMA .Net stream.

WmaStream ( String file, String user, String password, WmaStreamCreateConfig configs ) : System

Creates a sample stream from a WMA file, optionally with a user name and password to authenticate.

WmaStream ( String file, String user, String password, WmaStreamCreateConfig configs, uint offset, uint length ) : System

Creates a sample stream from a WMA file, optionally with a user name and password to authenticate. .

WmaStream ( String file, WmaStreamCreateConfig configs ) : System

Creates a sample stream from a WMA file.

WmaStream ( String file, WmaStreamCreateConfig configs, uint offset, uint length ) : System

Creates a sample stream from a WMA file.

Protected Methods

Method Description
AttachEvent ( ) : void

Private Methods

Method Description
OnMetaDataEncountered ( IntPtr displayHandle, IntPtr channel, uint data, IntPtr user ) : void
OnServerTrackChanged ( IntPtr displayHandle, IntPtr channel, uint data, IntPtr user ) : void
WmaStream ( IntPtr handle ) : System

Method Details

AttachEvent() protected method

protected AttachEvent ( ) : void
return void

WmaStream() public method

Create a sample stream from a WMA Bass stream.
public WmaStream ( BassStream bassStream, WmaStreamCreateConfig configs, StreamFileSystemType systemType ) : System
bassStream BassStream The Bass stream.
configs WmaStreamCreateConfig Configure of .
systemType StreamFileSystemType File system to use.
return System

WmaStream() public method

Create a sample stream from a WMA file via user callback functions.
public WmaStream ( FileHandlers handlers, WmaStreamCreateConfig configs, StreamFileSystemType systemType, IntPtr user ) : System
handlers xZune.Bass.Interop.Core.FileHandlers The user defined file functions.
configs WmaStreamCreateConfig Configure of .
systemType StreamFileSystemType File system to use.
user System.IntPtr User instance data to pass to the callback functions.
return System

WmaStream() public method

Creates a sample stream from a WMA memory stream.
public WmaStream ( MemoryStream stream, WmaStreamCreateConfig configs ) : System
stream System.IO.MemoryStream Memory stream.
configs WmaStreamCreateConfig Configure of .
return System

WmaStream() public method

Create a sample stream from a WMA .Net stream.
public WmaStream ( Stream stream, WmaStreamCreateConfig configs, StreamFileSystemType systemType ) : System
stream Stream The .Net stream.
configs WmaStreamCreateConfig Configure of .
systemType StreamFileSystemType File system to use.
return System

WmaStream() public method

Creates a sample stream from a WMA file, optionally with a user name and password to authenticate.
public WmaStream ( String file, String user, String password, WmaStreamCreateConfig configs ) : System
file String File name.
user String /// User name to use in connecting to the server... if either this or pass is NULL, then no user /// name/password is sent to the server. ///
password String Password to use in connecting to the server.
configs WmaStreamCreateConfig Configure of .
return System

WmaStream() public method

Creates a sample stream from a WMA file, optionally with a user name and password to authenticate. .
public WmaStream ( String file, String user, String password, WmaStreamCreateConfig configs, uint offset, uint length ) : System
file String File name.
user String /// User name to use in connecting to the server... if either this or pass is NULL, then no user /// name/password is sent to the server. ///
password String Password to use in connecting to the server.
configs WmaStreamCreateConfig Configure of .
offset uint File offset to begin streaming from.
length uint Data length... 0 = use all data up to the end of the file.
return System

WmaStream() public method

Creates a sample stream from a WMA file.
public WmaStream ( String file, WmaStreamCreateConfig configs ) : System
file String File name.
configs WmaStreamCreateConfig Configure of .
return System

WmaStream() public method

Creates a sample stream from a WMA file.
public WmaStream ( String file, WmaStreamCreateConfig configs, uint offset, uint length ) : System
file String File name.
configs WmaStreamCreateConfig Configure of .
offset uint File offset to begin streaming from.
length uint Data length... 0 = use all data up to the end of the file.
return System