Méthode | Description | |
---|---|---|
AudioSample ( |
Create a sample form a WAV, AIFF, MP3, MP2, MP1, OGG or plug-in supported file sample stream.
|
|
AudioSample ( String file, System.UInt64 offset, uint length, uint max, SampleLoadConfig config ) : System |
Create a sample form a WAV, AIFF, MP3, MP2, MP1, OGG or plug-in supported file sample.
|
|
AudioSample ( uint length, uint freq, uint channels, uint max, SampleConfig config ) : System |
Creates a new sample.
|
|
GetChannel ( bool recycle ) : |
Creates/initializes a playback channel for a sample.
|
|
GetChannels ( ) : xZune.Bass.SampleChannel[] |
Get all a sample's existing channels.
|
|
Stop ( ) : void |
Stops all channels instances of a sample.
|
Méthode | Description | |
---|---|---|
AudioSample ( ) : System | ||
Free ( ) : void | ||
ReleaseManaged ( ) : void | ||
ReleaseUnmanaged ( ) : void |
public AudioSample ( |
||
stream | A .NET memory stream. | |
max | uint | /// Maximum number of simultaneous playbacks... 1 (min) - 65535 (max)... use one of the /// SampleConfig.OverXX flags to choose the override decider, in the case of there being no free channel available for /// playback (ie. the sample is already playing max times). /// |
config | SampleLoadConfig | Some configures of sample. |
Résultat | System |
public AudioSample ( String file, System.UInt64 offset, uint length, uint max, SampleLoadConfig config ) : System | ||
file | String | File name. |
offset | System.UInt64 | File offset to load the sample from. |
length | uint | /// Data length... 0 = use all data up to the end of file. If length over-runs the end of the file, it /// will automatically be lowered to the end of the file. /// |
max | uint | /// Maximum number of simultaneous playbacks... 1 (min) - 65535 (max)... use one of the /// SampleConfig.OverXX flags to choose the override decider, in the case of there being no free channel available for /// playback (ie. the sample is already playing max times). /// |
config | SampleLoadConfig | Some configures of sample. |
Résultat | System |
public AudioSample ( uint length, uint freq, uint channels, uint max, SampleConfig config ) : System | ||
length | uint | The sample's length, in bytes. |
freq | uint | The default sample rate. |
channels | uint | The number of channels... 1 = mono, 2 = stereo, etc. |
max | uint | /// Maximum number of simultaneous playbacks... 1 (min) - 65535 (max)... use one of the /// SampleConfig.OverXX flags to choose the override decider, in the case of there being no free channel available for /// playback (ie. the sample is already playing max times). /// |
config | SampleConfig | Some configures of sample. |
Résultat | System |
public GetChannel ( bool recycle ) : |
||
recycle | bool | Recycle on of the existing channels, then to create a new. |
Résultat |
public GetChannels ( ) : xZune.Bass.SampleChannel[] | ||
Résultat | xZune.Bass.SampleChannel[] |