Ejemplo n.º 1
0
void clAudioSource_OpenAL::SetVelocity( const LVector3& Velocity )
{
#if L_AUDIO_USE_OPENAL
	alSourcef( FSourceID, AL_REFERENCE_DISTANCE, 1.0 );

	alSourcefv( FSourceID, AL_VELOCITY, Velocity.ToFloatPtr() );
#endif
}
Ejemplo n.º 2
0
void clAudioSource_OpenAL::SetPosition( const LVector3& Position )
{
#if L_AUDIO_USE_OPENAL
	alSourcef( FSourceID, AL_REFERENCE_DISTANCE, 1.0 );

	alSourcefv( FSourceID, AL_POSITION, Position.ToFloatPtr() );
#endif
}
Ejemplo n.º 3
0
void clAudioSubSystem_OpenAL::SetListenerVelocity( const LVector3& Velocity )
{
#if L_AUDIO_USE_OPENAL
	alListenerfv( AL_VELOCITY, Velocity.ToFloatPtr() );
#endif
}
Ejemplo n.º 4
0
void clAudioSubSystem_OpenAL::SetListenerPosition( const LVector3& Position )
{
#if L_AUDIO_USE_OPENAL
	alListenerfv( AL_POSITION, Position.ToFloatPtr() );
#endif
}