[Openal] hello world alut program,fnctl:invalid argument
zhengzhi
tscmga at gmail.com
Thu May 3 16:17:56 PDT 2007
the problem isn't OpenAL or SDL . i used to download oss driver from the www.opensound.com , and install it , because the sound driver comes from FreeBSD kernel dose not come with the utility "ossmix" which can change sound volume in the command line.
after disabling the downloaded OSS driver ("soundoff")
and loading the driver comes from the FreeBSD kernel ("kldload snd_driver")
,
mplayer dose not have promble with SDL now and the game "trigger " dose not have problem with OpenAL too.
The problem is the wrong sound driver.
> Hi
>
> I installed the game "trigger" ,and got the same OpenAL error .
> "
> Trigger init
> Build: 0.5.2 on May 3 2007 at 19:09:09
> Initialising PhysFS
> Set writable user directory to "/usr/home/program/"
> Reset writable user directory to "/usr/home/program/.trigger"
> Application base directory "/usr/local/bin/"
> Main game data directory datadir="/usr/local/share/trigger"
> Loading game configuration
> Initialising SDL
> Create window and set video mode
> Found 0 joysticks
> GLEW initialized
> Graphics: NVIDIA Corporation GeForce FX 5200/PCI/SSE2
> Using OpenGL 2.0
> Initialising render subsystem
> Initialising texture subsystem [SDL_Image]
> Initialising effects subsystem
> Initialising model subsystem
> Initialising audio subsystem [OpenAL]
> fcntl: Invalid argument
> fcntl: Invalid argument
> Performing app load
> Loading image "textures/splash/splash.jpg"
> Initialisation complete, entering main loop
> Loading image "/textures/consolefont.png"
> Loading image "/textures/splash/endgame.jpg"
> Loading image "/textures/life_helmet.png"
> Loading image "/textures/arrow.png"
> Loading image "/textures/detail.jpg"
> Loading image "/textures/dust.png"
> Loading image "/textures/shadow.png"
> Loading image "/textures/dial_rev.png"
> Loading image "/textures/dial_speed.png"
> Loading image "/textures/dial_gear.png"
> Loading sample "/sounds/engine1.wav"
> Failed to load /sounds/engine1.wav: Sample load failed:There was already an ALC error on entry to an ALUT function at src/pengine/audio.cpp:212
> Exit requested
> Shutting down audio subsystem
> Shutting down model subsystem
> Shutting down effects subsystem
> Shutting down texture subsystem
> Shutting down render subsystem
> Shutdown complete
> "
> On Thu, May 03, 2007 at 03:22:22PM +0000, zhengzhi wrote:
> > Thanks ,all.
> >
> > I didn't have a ~/.openalrc .
> >
> > The FreeBSD Ports and Packages Collection offers a simple way for users to install applications. openal-20060211_4 is the latest port.
> >
> > I've written a ~/.openalrc after reading your replies
> > code:
> > "
> > (define devices '(oss))
> > (define oss-output-device "/dev/dsp1")
> > "
> > but the error still exits.i'm not sure this (Lisp?) script had been executed ,because while the syntax is wrong , the program dose not generate any syntax error messag.
> >
> >
> > On Wed, May 02, 2007 at 09:26:44PM -0700, Chris Robinson wrote:
> > > On Thursday 03 May 2007 04:17:16 am 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
> > >
> > > My first reaction would be to recommend upgrading openal, as that version's
> > > over a year old.
> > >
> > > Do you have an ~/.openalrc?
> > > _______________________________________________
> > > Openal mailing list
> > > Openal at opensource.creative.com
> > > http://opensource.creative.com/mailman/listinfo/openal
More information about the Openal
mailing list