Commit graph

3 commits

Author SHA1 Message Date
Wim Taymans
8c9b0b19d8 audioconvert: use constants for the gap modes 2026-06-19 10:03:15 +02:00
Wim Taymans
6ce3b75e9d gaps: special case the gaps check
When we only do ramp down we can simplify some things.
2026-06-18 12:09:16 +02:00
Wim Taymans
8971c488f3 audioconvert: add zeroramp and gap detection to audioconvert
Make a new zeroramp.duration and zeroramp.gap property on audioconver.
It detects N samples of silence before triggering a fade-in or fade-out
of the given zeroramp.duration.

The zeroramp.duration is by default 5ms and zeroramp.gap is set to 0.

When the zeroramp.gap is set to 0, the audioconver will not do any gap
detection but it will only do fade-out from the last sample when the IO
Buffer area is removed from a port.

This by default makes the audio adapter perform a fade-out when the last
input of the port mixer was removed and the mixer is no longer scheduled
and the IO Area removed from the audioconverter input port.
2026-06-17 17:11:42 +02:00