Méthode | Description | |
---|---|---|
AudioStream ( StreamHandler handler, int freq, int channels, StreamCreateConfig configs, |
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.
|
Méthode | Description | |
---|---|---|
AudioStream ( ) : System | ||
Free ( ) : void |
Frees a sample stream's resources, including any sync/DSP/FX it has.
|
|
ReleaseManaged ( ) : void | ||
ReleaseUnmanaged ( ) : void |
public AudioStream ( StreamHandler handler, int freq, int channels, StreamCreateConfig configs, |
||
handler | StreamHandler |
/// The user defined stream writing function, or one of the |
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 | User instance data to pass to the callback function. Unused when creating a dummy or push stream. | |
Résultat | System |
public GetFilePosition ( FilePositionMode mode ) : System.UInt64 | ||
mode | FilePositionMode | The file position/status to retrieve. |
Résultat | System.UInt64 |
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. /// |
Résultat | int |