Skip to content

[SDL3][audio] time to drop hardcoded channel maps for good? #10359

@sylware

Description

@sylware

Hi,

I have been coding a bit of audio lately (SDL3 audio alsa backend), and I humbly think it may be time to drop presumed hardcoded channel maps.

Audio systems without channel maps would be given the old hardcoded ones, but the SDL3 audio programing model would not presume the user code to be hardcoded for such channel maps and channel positions/specifications.

That would mean SDL3 would require a full set of channel specifications/positions (see ffmpeg resample library, which has specifications/positions to even handle the few cases of sparse channel maps).

Since some generic channel map swizzling code is being implemented in SDL3, that would mean for audio backends to only map their channel specifications/positions to SDL3 ones.

( and then, finally, it will be the user code to be carefull of the 6channels surround positions, which could be "Side" or "Rear" ).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions