Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: xteraco on June 02, 2006

Title: Using BASSMOD in Code::Blocks (cpp)
Post by: xteraco on June 02, 2006
hey all, i wrote a lil thing about usin bassmod, figured it may be of use....

to lazy to copy/paste it all, so i attached it, also because i wanted to go ahead and include the lib, so you dont have to go looking for it
:)

Title: Re: Using BASSMOD in Code::Blocks (cpp)
Post by: Rbz on June 03, 2006
Nice one xteraco  :)

Just don't forget to free allocated Bassmod music memory ;)

Code: [Select]
int main()
{
    LoadMusic();
    PlayMusic();
    ErrorReport();
    ScreenHold();

    //stop music
    BASSMOD_MusicStop();
    //free bassmod music   
    BASSMOD_MusicFree();
   
    return 0;
}


Title: Re: Using BASSMOD in Code::Blocks (cpp)
Post by: xteraco on June 03, 2006
what can i say? i knew how to do it, but i *am* the lazyest coder on the face of the planet
Title: Re: Using BASSMOD in Code::Blocks (cpp)
Post by: Shockwave on June 03, 2006
Kewl stuff Xteraco :) Thanks for sharing
Title: Re: Using BASSMOD in Code::Blocks (cpp)
Post by: Phoenix on June 20, 2006
Pretty neat Xteraco, thanks for sharing.