[Openal] Problems loading wav files - alutCreateBufferFromFile()
kohoutek at portugalmail.pt
kohoutek at portugalmail.pt
Mon Dec 4 05:45:54 PST 2006
Hello all.
I've download openal (OpenAL Source (tar.gz format; February 11, 2006) and
freealut (freealut 1.1.0 source tar.gz) source from openal.org.
./configure && make && make install went with no problems.
For test purposes i use this:
#include <stdlib.h>
#include <AL/alut.h>
int
main (int argc, char **argv)
{
ALuint helloBuffer, helloSource;
alutInit (&argc, argv);
helloBuffer = alutCreateBufferHelloWorld ();
alGenSources (1, &helloSource);
alSourcei (helloSource, AL_BUFFER, helloBuffer);
alSourcePlay (helloSource);
alutSleep (1);
alutExit ();
return EXIT_SUCCESS;
}
g++ hello.cpp -lopenal -lalut
The problem is that sound has allot of noise and it's slowed down - like in slow
motion.
The same thing happens with alutCreateBufferFromFile.
Am I doing anything wrong or is this a problem with freealut? If so how can i
solve this?
Thanks in advance,
Helder
__________________________________________________________
O email preferido dos portugueses agora com
2 000 MB de espaço e acesso gratuito à Internet
http://www.portugalmail.pt/2000mb
More information about the Openal
mailing list