Skip to content

Prevent clicks at the beginning or end of audio play #5136

Open
@dhalbert

Description

@dhalbert

Currently for some ports and some audio play mechanisms, there can be clicks at the beginning and/or the end of a sample due to sudden level shifts. We have support for quiescent values but these are often sample-file dependent.

Some ports ramp the amplitude up and down, but this prevents gapless playback and lengthens playing short samples (#3626).

We have also recommended in the past that users add ramping to their own audio files.

We should look at how this problem is solved in the real world, and try to emulate that. In many cases it may be done by speaker or amplifier disabling, which allows for a "soft" settling. Perhaps an audio enable/disable pin can be passed optionally to the audio play objects or methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions