Results 1 to 1 of 1

Thread: Help file: TBASS_MusicFree

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Help file: TBASS_MusicFree

    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

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •