C# Класс xZune.Bass.AudioStream

A audio sample stream.
Наследование: Channel, IStream
Показать файл Открыть проект

Открытые методы

Метод Описание
AudioStream ( StreamHandler handler, int freq, int channels, StreamCreateConfig configs, IntPtr user ) : System

Creates a user sample stream.

Sample streams allow any sample data to be played through Bass, and are particularly useful for playing a large amount of sample data without requiring a large amount of memory. If you wish to play a sample format that BASS does not support, then you can create a stream and decode the sample data into it. BASS can automatically stream MP3, MP2, MP1, OGG, WAV and AIFF files, using CreateFile, and also from HTTP and FTP servers, using CreateURL. CreateFileUser allows streaming from other sources too.

GetFilePosition ( FilePositionMode mode ) : System.UInt64

Get the file position/status of a stream.

PutData ( byte buffer ) : int

Adds sample data to a "push" stream.

Защищенные методы

Метод Описание
AudioStream ( ) : System
Free ( ) : void

Frees a sample stream's resources, including any sync/DSP/FX it has.

ReleaseManaged ( ) : void
ReleaseUnmanaged ( ) : void

Описание методов

AudioStream() защищенный Метод

protected AudioStream ( ) : System
Результат System

AudioStream() публичный Метод

Creates a user sample stream.
Sample streams allow any sample data to be played through Bass, and are particularly useful for playing a large amount of sample data without requiring a large amount of memory. If you wish to play a sample format that BASS does not support, then you can create a stream and decode the sample data into it. BASS can automatically stream MP3, MP2, MP1, OGG, WAV and AIFF files, using CreateFile, and also from HTTP and FTP servers, using CreateURL. CreateFileUser allows streaming from other sources too.
public AudioStream ( StreamHandler handler, int freq, int channels, StreamCreateConfig configs, IntPtr user ) : System
handler StreamHandler /// The user defined stream writing function, or one of the /// and . ///
freq int The default sample rate. The sample rate can be changed using .
channels int The number of channels... 1 = mono, 2 = stereo, 4 = quadraphonic, 6 = 5.1, 8 = 7.1.
configs StreamCreateConfig Configure of create a steam.
user System.IntPtr User instance data to pass to the callback function. Unused when creating a dummy or push stream.
Результат System

Free() защищенный Метод

Frees a sample stream's resources, including any sync/DSP/FX it has.
/// 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.
protected Free ( ) : void
Результат void

GetFilePosition() публичный Метод

Get the file position/status of a stream.
/// Bass DLL not loaded, you must use to /// load Bass DLL first. /// /// Some error occur to call a Bass function, check the error code and error message /// to get more error information. /// Channel object is no longer available.
public GetFilePosition ( FilePositionMode mode ) : System.UInt64
mode FilePositionMode The file position/status to retrieve.
Результат System.UInt64

PutData() публичный Метод

Adds sample data to a "push" stream.
/// 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 /// Pointer to the sample data... NULL = allocate space in the queue buffer so that there is at least /// length bytes of free space. Empty array can be used to just check how much data is queued. ///
Результат int

ReleaseManaged() защищенный Метод

protected ReleaseManaged ( ) : void
Результат void

ReleaseUnmanaged() защищенный Метод

protected ReleaseUnmanaged ( ) : void
Результат void