Author Topic: Using FMOD in Code::Blocks (cpp)  (Read 1034 times)

0 Members and 1 Guest are viewing this topic.

xteraco

  • Guest
Using FMOD in Code::Blocks (cpp)
« on: June 23, 2006 »


the documentation that comes with FMOD totally blows... so i coded up a simple little example

Offline rootuid

  • C= 64
  • **
  • Posts: 86
  • Karma: 2
    • View Profile
Re: Using FMOD in Code::Blocks (cpp)
« Reply #1 on: August 01, 2006 »
Thanks xteraco for the simple intro, I'll post the code from your rar here...  O0 O0
Code: [Select]
#include "fmod.h"
#include <iostream>
using namespace std;

int main()
{

int a;
a = 1;

FSOUND_Init(44100, 32, 0);

FSOUND_Stream_SetBufferSize(1000);
FSOUND_STREAM *SongPointer;
SongPointer = FSOUND_Stream_Open("test.ogg",0,0,0);
FSOUND_Stream_Play(FSOUND_FREE,SongPointer);
do
{

    FSOUND_Update();

}
while (a = 1);


return 0;

}