[Openal] 2D and 3D

Flavio Oliveira flavyobr at yahoo.com.br
Wed Oct 4 06:16:19 PDT 2006


Hm, easy! Thanks!

If I understood to play 5.1 audio, I just need to
check if the implementation supports multi-channel 
formats, and nothing more! I can have one source
and 2 buffers, i.e. It doesn't matter! Right?

I.E:

eBufferFormat = alGetEnumValue("AL_FORMAT_51CHN16");
if (!eBufferFormat) {
  return NOT_SUPPORTED;
}

BR, Flavio

> 
> > For 2D Audio I use:
> >
> > alSource3f(mSource,AL_POSITION,       0.0, 0.0,
> 0.0);
> > alSource3f(mSource,AL_VELOCITY,       0.0, 0.0,
> 0.0);
> > alSource3f(mSource,AL_DIRECTION,      0.0, 0.0,
> 0.0);
> > alSourcef (mSource,AL_ROLLOFF_FACTOR, 0.0         
> );
> > alSourcei (mSource,AL_SOURCE_RELATIVE,AL_TRUE     
> );
> >
> > So, Is there some default configuration for 3D
> Audio?
> >   
> Yes -- it's the same as what you have above, with an
> AL_ROLLOFF_FACTOR 
> of 1.0f and AL_SOURCE_RELATIVE set to AL_FALSE.
> 
> Garin
> 
> 



		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale 
o discador agora! 
http://br.acesso.yahoo.com


More information about the Openal mailing list