Hi,
the following topic is empty:
thinBasic Modules > TBASS (Sound Module) > Music > TBASS_MusicFree
I would propose:
Description
Frees a MOD music's resources
Syntax
success = TBASS_MusicFree( hMusic )
Returns
%TBASS_TRUE in case of success.
%TBASS_FALSE in case of failure, you can retrieve more info via TBASS_ErrorGetCode.
Parameters
hMusic;Number;Existing handle of loaded MOD music returned by TBASS_MusicLoad
Remarks
Function fails in case the hMusic is invalid handle.
Restrictions
See also
TBASS_MusicLoad
Examples
' -- Load mod music
DIM hMusic AS DWORD
hMusic = TBASS_MusicLoad(%TBASS_FALSE, APP_SOURCEPATH+"backgroundMusic.mod", 0, 0, %TBASS_SAMPLE_LOOP, 0 )
...
' -- Release it
TBASS_MusicFree( hMusic )
Last edited by Petr Schreiber; 15-05-2011 at 12:10.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks