[OpenAL]Linux Issues

steve steve at astrocorp.com.tw
Wed Apr 25 22:21:25 PDT 2007


Thank you for your valuable information.
I added the following codes for my background music. And now it works.

      alSourcei (m_id, AL_SOURCE_RELATIVE, AL_TRUE);
      alSourcef (m_id, AL_ROLLOFF_FACTOR, 0);
      ALfloat pos[3] = {0, 0, 0};
      Source::SetPosition (pos);

I don't if the default value for Linux is different than XP.
You may use it for debugging openal Linux version.

The other question is does the 3D sound effect work on Linux?
 If not, is there work around?
Thank you.
Steve



You can work around this though by manually splitting the audio file on 
loading and playing the two (or more) separated mono files through two 
different sources. I have successfully played stereo music on my linux box 
that way, and since I intend to do some music mixing/fading and thus have to

manually load my Ogg files anyway, the additional work for it is rather 
small.

> I'm not sure why your background music buffer isn't looped properly,
> there shouldn't be any difference between short buffers and long buffers.

As far as I remember, I used to have problems when setting up source 
properties in the "wrong" order; they would not all be applied if I changed 
the order. Perhaps shifting them around a bit (or setting non-used
properties 
to default values) might help.

Hope this helps,
Marian.

-- 
http://www.musgit.com | http://marian.musgit.com

Hofstadter's law: "It always takes longer than you think,
even when you take account of Hofstadter's law".
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal




More information about the Openal mailing list