OpenAL 2d panning C++
问题 I'm trying to figure out how to get openAL to pan in 2D (by manipulating the 3D positioning). Ideally I want to achieve panning such that the Left or Right channel can be fully engaged with the other channel completely silent. It seems that Open AL handles 3d distances and falloffs nicely, but I'm struggling to emulate this kind of 2D panning. I'm using alDistanceModel(AL_LINEAR_DISTANCE_CLAMPED) float sourcePosition[3] = {0.99f,0.f,0.f}; alSourcefv(sourceID, AL_POSITION, sourcePosition);