|
Final Platform Layer 1.0.0
|
By default you don't have to setup anything in FPL, if your audio device supports multiple channels you can get the fplAudioChannelLayout and the number of channels from the fplAudioFormat.
By default, FPL uses the native audio channel layout for your default sound device, but you can overwrite it by setting the fplAudioChannelLayout in the fplAudioSettings structure:
A channel map is a table of channel indices to a fplAudioChannelType.
If you have a fplAudioChannelLayout_Stereo or even fplAudioChannelLayout_Mono, you can simply use the default indices (0|1) or just zero for mono.
As soon as you have more than two channels, you have to get the fplAudioChannelMap from the current audio backend and map your source channel indices. You can get the current fplAudioChannelMap by calling fplGetAudioChannelMap().
This must be called, after the audio system has been initialized, either after fplPlatformInit() or after fplAudioInit().