[Openal] Everything is ok but .wav file wont play.
Chris Robinson
chris.kcat at gmail.com
Mon Mar 16 22:08:50 PDT 2009
On Monday 16 March 2009 4:42:46 pm Margin Marh wrote:
> I am using OpenAl with the help of Alure...
> I made my own test program from the Alure play sample that is supposed to
> play a .wav file but when i built it, it seems to build successfully but
> when i debug it there is no sound coming out of my speakers.
> I kept trying to find my error but i did not find any reason the file isn't
> playing.
>
> Here is the code of my sample test program :
...
> > buf = alureCreateBufferFromFile("test.wav");
> >
> > alSourcei(src, AL_BUFFER, buf);
...
> Thanks in advance.
Double-check that the file gets loaded, by checking that 'buf' isn't
0/AL_NONE. If it is AL_NONE, you'll want to print out what
alureGetErrorString() returns.
To make sure, you're using the DLL from the binary distribution? And what
format is the .wav file? If it's mp3-compressed, it won't play.
More information about the Openal
mailing list