Petr Schreiber
15-05-2011, 11:36
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 )
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 )