[Openal] hello world alut program,fnctl:invalid argument
Jason Daly
jdaly at ist.ucf.edu
Wed May 2 21:18:17 PDT 2007
Try putting this in a file called .openalrc in your home directory:
(define devices '(oss))
--"J"
zhengzhi wrote:
> 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
>
>
>
>
>
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
More information about the Openal
mailing list