Author Topic: Using BASSMOD in Code::Blocks (cpp)  (Read 4188 times)

0 Members and 1 Guest are viewing this topic.

xteraco

  • Guest
Using BASSMOD in Code::Blocks (cpp)
« 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
:)


Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Using BASSMOD in Code::Blocks (cpp)
« Reply #1 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;
}


Challenge Trophies Won:

xteraco

  • Guest
Re: Using BASSMOD in Code::Blocks (cpp)
« Reply #2 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

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Using BASSMOD in Code::Blocks (cpp)
« Reply #3 on: June 03, 2006 »
Kewl stuff Xteraco :) Thanks for sharing
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Phoenix

  • C= 64
  • **
  • Posts: 99
  • Karma: 4
    • View Profile
Re: Using BASSMOD in Code::Blocks (cpp)
« Reply #4 on: June 20, 2006 »
Pretty neat Xteraco, thanks for sharing.