Tag Archives: mp3

Tocando MP3 com a FMOD

Não é um tutorial, apenas um teste que eu tinha feito há um tempo atrás para aprender a FMOD.

#include <stdio.h>
#include <stdlib.h>
#include <fmod.h>

FSOUND_SAMPLE *fundo;

int main()
{
    FSOUND_Init(44100, 32, 0);

    fundo = FSOUND_Sample_Load(0, "musica.mp3", 0, 0, 0);

    FSOUND_PlaySound(0, fundo);

    system("pause");

    FSOUND_Sample_Free(fundo);
    FSOUND_Close();

    return 0;
}

Se der tempo depois eu posto um tutorialzinho simples sobre ela. Mas vejam este da GameDev.net que é muito bom: A Quick Guide to FMOD. Ou então Googleiem! ^^

Flw

Google Buzz