• Welcome to Dark Bit Factory & Gravity.
 

uFmod for Dev-C++

Started by Rbz, August 05, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rbz

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

:cheers:

/*
    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();   

}


Challenge Trophies Won: