AudioSceneJson

JSON codec for AudioScene. Hosts can ship .json files as their own presets.

{
"id": "rain-night",
"layers": [
{
"id": "rain",
"gainDb": -6.0,
"effects": [{ "type": "REVERB", "params": { "0": 0.5 } }]
}
]
}

SceneLayer.id is opaque. The host maps it to a file or generator when calling AudioScenePlayer.transitionTo.

Functions

Link copied to clipboard
Link copied to clipboard
fun encode(scene: AudioScene): String