[Openal] Artifacts - Alternating from left to right channels?

Ashley McConnell ashley at siroccoracing.com
Mon Mar 2 01:06:22 PST 2009




Daniel PEACOCK wrote:
> 
> 
> Just checking something ... an AL Source remembers all its parameter
> values
> even if you switch the Buffers it is playing.   If you want to re-use a
> Source to play a new sound in the game, you must re-set all the parameters
> to the new values, are you doing that?
> 
> Are you using Head Relative sounds (setting the AL_SOURCE_RELATIVE
> property) on your Sources?  This tells AL that your position and velocity
> settings on the Source are relative to the Listener position and velocity
> rather than to the origin.   (This setting could be useful for all
> player's
> car sounds)
> 
> Dan
> 
> 

Hi Dan,

Sorry for not replying sooner, I got caught up in some other stuff last
week.  I managed to have another go at it yesterday.  I noticed that moving
the engine position further from the listener resulted in more consistent
sound, also updating the POSITION of the sound before the VOLUME and PITCH
seemed to make a positive difference.  It isn't quite perfect though.

I haven't tried the AL_SOURCE_RELATIVE flag yet as I was hoping I could get
a solution that would work for both the player and network cars, and also
for replays.

I don't currently reuse buffers, everything is static for the moment.  Is
there some kind of buffer pool addon that can be used when I add network car
sound?

All the best,
Ash

-- 
View this message in context: http://www.nabble.com/Artifacts---Alternating-from-left-to-right-channels--tp22100029p22283453.html
Sent from the OpenAL - User mailing list archive at Nabble.com.



More information about the Openal mailing list