• Welcome to Dark Bit Factory & Gravity.
 

Using FMOD in Code::Blocks (cpp)

Started by xteraco, June 23, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

xteraco

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

Dad1916

Thanks xteraco for the simple intro, I'll post the code from your rar here...  O0 O0

#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;

}