🎉 atmoky trueSpatial 2.0 is now available!

Global Platform Format

The plug-ins provide a special API to set and retrieve the current platform format. The Spatializer and Renderer plug-ins will react to changes in the platform format and adjust their output accordingly.

You cannot use this API while working in FMOD Studio. Plug-ins loaded in FMOD Studio will react to the selected platform's speaker mode, so you can test your mix by switching the platform in the lower right part of FMOD Studio.

Platform Format API

The API is reachable through a C function call, however the game engine integrations provide a more convenient way to access the platform format.

The Unity integration provides the following enums and methods:

Platform Format Enum
enum Atmoky.PlatformFormat
{
    StereoOrBinaural,
    Quadraphonic,
    FivePointOne,
    SevenPointOne,
    SevenPointOnePointFour
}
Setter and Getter Methods
void Atmoky.Platform.SetFormat(Atmoky.PlatformFormat format);
Atmoky.PlatformFormat Atmoky.Platform.GetFormat();
Usage Example
using Atmoky;
public class PlatformSwitcher : MonoBehaviour
{
    void Start()
    {
        Atmoky.Platform.SetFormat(PlatformFormat.StereoOrBinaural);
    }
 
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
             Atmoky.Platform.SetFormat(PlatformFormat.StereoOrBinaural);
        }
        else if (Input.GetKeyDown(KeyCode.Alpha2))
        {
             Atmoky.Platform.SetFormat(PlatformFormat.Quadraphonic);
        }
        else if (Input.GetKeyDown(KeyCode.Alpha3))
        {
             Atmoky.Platform.SetFormat(PlatformFormat.FivePointOne);
        }
    }
}

Further Reading


atmoky Logo

© 2024 atmoky, GmbH.
All rights reserved.

We use cookies to measure and improve your browsing experience, and serve personalized ads or content.