Dark Bit Factory & Gravity
PROGRAMMING => C / C++ /C# => Topic started by: xteraco on June 23, 2006
-
the documentation that comes with FMOD totally blows... so i coded up a simple little example
-
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;
}