BASS is an audio library for use in Windows and Mac OSX software.
Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a tiny DLL, under 100KB* in size. For an in-depth documentation of the bass features and functions, visit http://www.un4seen.com and download the BASS SDK.
|int GetError ()||Returns the last occurred error as an integer, if any.|
|int GetFrequency ()||Returns the device's output sample rate, if supported by the OS.|
|int Init ()||Initializes Bass with default settings.|
|Channel MusicLoad (const string, const int)||Loads a music file for playback.|
|Sample SampleLoad (const string, const int, const int)||Loads a sample from a file.|
|Channel StreamCreateFile (const string, const int)||Creates a new audio stream based on a file.|
|Channel StreamCreateURL (const string)||Creates a new audio stream based on a network stream.|
function int GetError ()
Returns the last occurred error as an integer, if any.
function int GetFrequency ()
Returns the device's output sample rate, if supported by the OS.
function int Init ()
Initializes Bass with default settings.
This must be called at least once before any other function can be called. Returns true if successful, otherwise false. Error information can be obtained by calling GetError().
function Channel MusicLoad (const string musicFile, const int bLoop)
Loads a music file for playback.
Supported file formats are almost all MOD based formats, including IT, XM, and MO3. Returns a new Channel object.
function Sample SampleLoad (const string musicFile, const int maxPoly, const int bLoop)
Loads a sample from a file.
This can be almost any sample format, including WAV, MP3, OGG, or AIFF. This is indended for sound effects playback in games and the likes. Returns a new Sample object.
function Channel StreamCreateFile (const string soundFile, const int bLoop)
Creates a new audio stream based on a file.
The file must reside in the local file system. Returns a new Channel object.
function Channel StreamCreateURL (const string url)
Creates a new audio stream based on a network stream.
This can be used to connect to any public podcast or shoutcast server. Returns a new Channel object.