playground-sdk/third_party/SDL3/examples/audio/05-planar-data
2026-10-02 23:54:36 +07:00
..
onmouseover.webp Extract standalone Playground SDK source foundation 2026-10-02 23:54:36 +07:00
planar-data.c Extract standalone Playground SDK source foundation 2026-10-02 23:54:36 +07:00
README.txt Extract standalone Playground SDK source foundation 2026-10-02 23:54:36 +07:00
thumbnail.png Extract standalone Playground SDK source foundation 2026-10-02 23:54:36 +07:00

This example code draws two clickable buttons. Each causes a sound to play,
fed to either the left or right audio channel through separate (planar)
arrays.

Planar audio can feed both channels at the same time from different arrays,
as well, but this example only uses one channel at a time for clarity. A
NULL array will supply silence for that channel.