Navigation:  thinBasic Modules >

TBASS (Sound Module)

Previous pageReturn to chapter overviewNext page

 

Description

 

TBASS is a module wrapper for the famous BASS audio library. From their site at http://www.un4seen.com/bass.html :

 

"BASS is an audio library for use in Windows and Mac OSX software. Its purpose is to provide developers with the most powerful and efficient (yet easy to use), 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."

 

Here thinBasic TBASS wrapper will expose some internal BASS functions in order to easily handle sound files.

 

 

How to use this module

 

Inside your script, before calling any module specific keyword, add the following:

 

USES "TBASS"

 

This directive will load the module and add the following new keywords and relevant module equates.

 

 

Restrictions

 

 

Important notes about TBASS module usage

 

1.TBASS is based on BASS library.
More info on BASS library can be found at: http://www.un4seen.com/
 
2.BASS library is free for free scripts.
If you develop any script that uses TBASS module, you must distribute those scripts for free.
 
3. If you plan to make any income in any form from your thinBasic scripts and you scripts use TBASS module, you have to purchase a licence from BASS author(s)