C# Class xZune.Bass.AudioFileStream

A audio file sample stream.
Inheritance: AudioStream, IFileStream
Exibir arquivo Open project: higankanshi/xZune.Bass

Public Methods

Method Description
AudioFileStream ( BassStream bassStream, StreamCreateFileUserConfig configs, StreamFileSystemType systemType ) : System

Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported Bass stream.

AudioFileStream ( FileHandlers handlers, StreamCreateFileUserConfig configs, StreamFileSystemType systemType, IntPtr user ) : System

Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file via user callback functions.

AudioFileStream ( MemoryStream stream, StreamCreateFileConfig configs ) : System

Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported memory stream.

AudioFileStream ( Stream stream, StreamCreateFileUserConfig configs, StreamFileSystemType systemType ) : System

Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported .Net stream.

AudioFileStream ( String file, StreamCreateFileConfig configs ) : System

Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file.

AudioFileStream ( String file, StreamCreateFileConfig configs, uint offset, uint length ) : System

Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file.

PutData ( byte buffer ) : int

Adds data to a "push buffered" user file stream's buffer.

Method Details

AudioFileStream() public method

Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported Bass stream.
public AudioFileStream ( BassStream bassStream, StreamCreateFileUserConfig configs, StreamFileSystemType systemType ) : System
bassStream BassStream The Bass stream.
configs StreamCreateFileUserConfig Configure of .
systemType StreamFileSystemType File system to use.
return System

AudioFileStream() public method

Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file via user callback functions.
public AudioFileStream ( FileHandlers handlers, StreamCreateFileUserConfig configs, StreamFileSystemType systemType, IntPtr user ) : System
handlers xZune.Bass.Interop.Core.FileHandlers The user defined file functions.
configs StreamCreateFileUserConfig Configure of .
systemType StreamFileSystemType File system to use.
user System.IntPtr User instance data to pass to the callback functions.
return System

AudioFileStream() public method

Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported memory stream.
public AudioFileStream ( MemoryStream stream, StreamCreateFileConfig configs ) : System
stream System.IO.MemoryStream Memory stream.
configs StreamCreateFileConfig Configure of .
return System

AudioFileStream() public method

Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported .Net stream.
public AudioFileStream ( Stream stream, StreamCreateFileUserConfig configs, StreamFileSystemType systemType ) : System
stream Stream The .Net stream.
configs StreamCreateFileUserConfig Configure of .
systemType StreamFileSystemType File system to use.
return System

AudioFileStream() public method

Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file.
public AudioFileStream ( String file, StreamCreateFileConfig configs ) : System
file String File name.
configs StreamCreateFileConfig Configure of .
return System

AudioFileStream() public method

Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file.
public AudioFileStream ( String file, StreamCreateFileConfig configs, uint offset, uint length ) : System
file String File name.
configs StreamCreateFileConfig 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

PutData() public method

Adds data to a "push buffered" user file stream's buffer.
/// Some error occur to call a Bass function, check the error code and error message /// to get more error information. /// /// Bass DLL not loaded, you must use to /// load Bass DLL first. /// Channel object is no longer available.
public PutData ( byte buffer ) : int
buffer byte The file data.
return int