This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

Setting the Panning Mode

Two common speaker panning modes can be set in the engine: Speakers and Headphones.

Setting the panning mode to Speakers will set the front L/R panning to be 60 degrees apart.

Setting the panning mode to Headphones will set the front L/R panning to be 180 degrees apart.

These panning angles will change the output mix to work better with the physical arrangement of speakers around the real listener.

To set the speaker panning mode, send a request in C++ to the audio system.

C++ Example: Request Set Panning Mode

if (auto audioSystem = AZ::Interface<Audio::IAudioSystem>::Get();
    audioSystem != nullptr)
{
    Audio::SystemRequest::SetPanningMode setPanMode;
    setPanMode.m_panningMode = Audio::PanningMode::Headphones; // or PanningMode::Speakers

    audioSystem->PushRequest(AZStd::move(setPanMode));
}