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
Compartilhar: Share this post with the world.
  • Twitter
  • Posterous
  • Facebook
  • del.icio.us
  • Digg
  • Friendfeed
  • Google
  • LinkedIn
  • Reddit
  • StumbleUpon
  • Technorati

One comment

  • Cadu
    05/07/2009 - 11:51 | Permalink

    Interessante, o allegro não tem um bom suporte para arquivos mp3.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>