Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: Rbz on August 05, 2006

Title: uFmod for Dev-C++
Post by: Rbz 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();   

}