AudioSpec

sealed interface AudioSpec(source)

What to do with the composition's audio, once every track has been mixed.

Mute keeps a silent track in the output, Remove writes no audio track at all. To quieten one clip or one track rather than the whole edit, see AudioLevel.

Inheritors

Types

Link copied to clipboard
data object AudioOnly : AudioSpec

Keep audio and drop video.

Link copied to clipboard
data object Keep : AudioSpec

Pass audio through unchanged.

Link copied to clipboard
data object Mute : AudioSpec

Keep the track and write silence, preserving track count and timing.

Link copied to clipboard
data object Remove : AudioSpec

Drop the audio track entirely. A different operation from Mute.

Link copied to clipboard
class Volume(val gain: Float) : AudioSpec

Keep the track at a scaled gain. Unlike a player's volume, this reaches the exported file.