메소드 | 설명 | |
---|---|---|
Apply3DChanges ( ) : void |
Applies changes made to the 3D system. This function must be called to apply any changes made with Set3DFactors, Set3DPosition, Channel.Set3DAttribute or Channel.Set3DPosition. This allows multiple changes to be synchronized, and also improves performance. |
|
FreeBass ( ) : void |
Frees all resources used by the output device, including all its samples, streams and MOD musics. This function should be called for all initialized devices before the program closes. It is not necessary to individually free the samples/streams/musics as these are all automatically freed by this function. |
|
Get3DFactors ( float &distf, float &rollf, float &dollf ) : void |
Get the factors that affect the calculations of 3D sound.
|
|
Get3DPosition ( Vector3 &pos, Vector3 &vel, Vector3 &front, Vector3 &top ) : void |
Get the position, velocity, and orientation of the listener.
|
|
GetDSoundObject ( DSoundObjectType type ) : |
Get a pointer to a DirectSound object interface.
|
|
GetDeviceInfo ( int device ) : |
Get information on an output device.
|
|
GetErrorCode ( ) : ErrorCode |
Retrieves the error code for the most recent Bass function call in the current thread.
|
|
Initialize ( String bassLibraryPath, int device, uint freq, InitializationConfig configs, |
Load Bass library and initialize it, it will automatically call InitializeBass. This function must be successfully called before using any functions, others remarks see InitializeBass. |
|
Initialize ( int device, uint freq, InitializationConfig configs, |
Load Bass library and initialize it, it will automatically call InitializeBass, we will try find Bass library in last time used directory and current directory. This function must be successfully called before using any functions, others remarks see InitializeBass. |
|
InitializeBass ( int device, uint freq, InitializationConfig configs, |
Initializes an output device. This function must be successfully called before using any sample, stream or MOD music functions. The recording functions may be used without having called this function. |
|
PauseAll ( ) : void |
Stops the output, pausing all musics/samples/streams on it.
|
|
ReleaseAll ( ) : void |
Free Bass library and release all resource it used, it will automatically call FreeBass.
|
|
Set3DFactors ( float distf, float rollf, float dollf ) : void |
Set the factors that affect the calculations of 3D sound.
|
|
Set3DPosition ( Vector3 pos, Vector3 vel, Vector3 front, Vector3 top ) : void |
Set the position, velocity, and orientation of the listener.
|
|
StartAll ( ) : void |
Starts (or resumes) the all output.
|
|
StopAll ( ) : void |
Stops the output, stopping all musics/samples/streams on it.
|
|
Update ( int length ) : void |
Updates the StreamMedia and MusicMedia channel playback buffers. When automatic updating is disabled, this function or ChannelUpdate needs to be used to keep the playback buffers updated. The length parameter should include some safety margin, in case the next update cycle gets delayed. For example, if calling this function every 100ms, 200 would be a reasonable length parameter. |
public static Get3DFactors ( float &distf, float &rollf, float &dollf ) : void | ||
distf | float | The distance factor. |
rollf | float | The rolloff factor. |
dollf | float | The doppler factor. |
리턴 | void |
public static Get3DPosition ( Vector3 &pos, Vector3 &vel, Vector3 &front, Vector3 &top ) : void | ||
pos | Vector3 | The position of the listener. |
vel | Vector3 | The listener's velocity. |
front | Vector3 | The direction that the listener's front is pointing. |
top | Vector3 | The direction that the listener's top is pointing. |
리턴 | void |
public static GetDSoundObject ( DSoundObjectType type ) : |
||
type | DSoundObjectType | DirectSound object type. |
리턴 |
public static GetDeviceInfo ( int device ) : |
||
device | int | The device to get the information of... 0 = first. |
리턴 |
public static Initialize ( String bassLibraryPath, int device, uint freq, InitializationConfig configs, |
||
bassLibraryPath | String | /// Path of the Bass library, if it is a file, will load this file, if it is a directory, /// will search "bass.dll" in it. /// |
device | int |
/// The device to use... -1 = default device, 0 = no sound, 1 = first real output device.
/// |
freq | uint | Output sample rate. |
configs | InitializationConfig | Configures of initialize Bass. |
windowHandle | The application's main window... 0 = the desktop window (use this for console applications). | |
dSoundGuid | xZune.Bass.Interop.Core.Guid | /// Class identifier of the object to create, that will be used to initialize DirectSound... NULL /// = use default. /// |
리턴 | void |
public static Initialize ( int device, uint freq, InitializationConfig configs, |
||
device | int |
/// The device to use... -1 = default device, 0 = no sound, 1 = first real output device.
/// |
freq | uint | Output sample rate. |
configs | InitializationConfig | Configures of initialize Bass. |
windowHandle | The application's main window... 0 = the desktop window (use this for console applications). | |
dSoundGuid | xZune.Bass.Interop.Core.Guid | /// Class identifier of the object to create, that will be used to initialize DirectSound... NULL /// = use default. /// |
리턴 | void |
public static InitializeBass ( int device, uint freq, InitializationConfig configs, |
||
device | int |
/// The device to use... -1 = default device, 0 = no sound, 1 = first real output device.
/// |
freq | uint | Output sample rate. |
configs | InitializationConfig | Configures of initialize Bass. |
windowHandle | The application's main window... 0 = the desktop window (use this for console applications). | |
dSoundGuid | xZune.Bass.Interop.Core.Guid | /// Class identifier of the object to create, that will be used to initialize DirectSound... NULL /// = use default. /// |
리턴 | void |
public static Set3DFactors ( float distf, float rollf, float dollf ) : void | ||
distf | float | The distance factor. |
rollf | float | The rolloff factor. |
dollf | float | The doppler factor. |
리턴 | void |
public static Set3DPosition ( Vector3 pos, Vector3 vel, Vector3 front, Vector3 top ) : void | ||
pos | Vector3 | The position of the listener. |
vel | Vector3 | The listener's velocity. |
front | Vector3 | The direction that the listener's front is pointing. |
top | Vector3 | The direction that the listener's top is pointing. |
리턴 | void |
public static Update ( int length ) : void | ||
length | int | The amount of data to render, in milliseconds. |
리턴 | void |