[Openal] how to get rid of alut?
Dirk
noisyb at gmx.net
Tue Jun 19 18:06:52 PDT 2007
I try to get rid of alut... But I fail.. What is missing here? It
compiles but there is no sound...
Thanks.
Dirk
ALuint
alutCreateBufferHelloWorld (void)
{
ALuint buffer;
ALenum format;
size_t size = 65462; // size of sample data
ALfloat frequency = 11025;
alGenBuffers (1, &buffer);
format = AL_FORMAT_MONO8;
alBufferData (buffer, format, helloWorldSample,
(ALsizei) size, (ALsizei) frequency);
return buffer;
}
More information about the Openal
mailing list