[Openal] hello world alut program,fnctl:invalid argument

zhengzhi tscmga at gmail.com
Thu May 3 04:17:16 PDT 2007


Hi

I  complied and ran the "hello world" program from the  "ALUT Specification". 
The error output is:
"
fcntl:invalid argument
fcntl:invalid argument
"

my OS is  FreeBSD 6.2
my sound driver is OSS .i can play music using mplayer.
openal-20060211_4
freealut-1.1.0_1


code:
#include<stdlib.h>
#include<AL/alut.h>

int
main(int argc ,char **argv)
{
		  ALuint helloBuffer,helloSource;
//alutInit(&argc,argv);
		  alutInit(0,0);// -------------------------error
		  helloBuffer=alutCreateBufferHelloWorld();
		  alGenSources(1,&helloSource);
		  alSourcei(helloSource,AL_BUFFER,helloBuffer);
		  alSourcePlay(helloSource);
		  alutSleep(1);
		  alutExit();
		  return EXIT_SUCCESS;
}
end code







More information about the Openal mailing list