Author Topic: uFmod for Dev-C++  (Read 728 times)

0 Members and 1 Guest are viewing this topic.

Offline rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2323
  • Karma: 392
    • View Profile
    • http://www.rbraz.com/
uFmod for Dev-C++
« on: August 05, 2006 »


Here is an example that works with Dev-C++.

 :cheers:

Code: [Select]
/*
    uFmod example for Dev-C++
   
    uFmod site:   http://ufmod.sourceforge.net/
   
    Code: Rbraz - 2006
*/


#include <stdio.h>
#include <conio.h>

//------------------------------------------------------------------------------
#include <windows.h>
#include <mmsystem.h>
#include "ufmod.h"
HWAVEOUT* hWave = 0;
//------------------------------------------------------------------------------


int main(int argc, char *argv[])
{
    char *title;
    char *filename;
   
    filename = "Jos-Chpk.xm";
   
    hWave = uFMOD_PlaySong(filename,0,XM_FILE);

    title = (char*)uFMOD_GetTitle();
   
    printf("Playing ... ");
    printf(title); 
       
    do {
    }
    while (!kbhit());
   
    uFMOD_StopSong();   

}

rbz ^ Codigos
Challenge Trophies Won: