// 设置声源方向 ///////////////////////////////////////////////////////////////////////////////// void OALMusicBuffer::Direction(float3 const & v) { float3 alv(VecToALVec(v)); alSourcefv(source_, AL_DIRECTION, &alv.x()); }
// 设置声源位置 ///////////////////////////////////////////////////////////////////////////////// void OALMusicBuffer::Position(float3 const & v) { float3 alv(VecToALVec(v)); alSourcefv(source_, AL_POSITION, &alv.x()); }
// 设置声源速度 ///////////////////////////////////////////////////////////////////////////////// void OALMusicBuffer::Velocity(float3 const & v) { float3 alv(VecToALVec(v)); alSourcefv(source_, AL_VELOCITY, &alv.x()); }
void OALAudioEngine::SetListenerPos(float3 const & v) { float3 alv(VecToALVec(v)); alListener3f(AL_POSITION, alv.x(), alv.y(), alv.z()); }