Skip to content

Default and/or display AudioContext sample rate #78

Description

@rtoy

Many of the little demos have a default sample rate for the demo. This is fine, but if the AudioContext sample rate differs greatly from this, the playback of the saved audio buffer is resampled to the sample rate of the context. At least for Chrome, this is just a simple linear interpolation which doesn't work very well if the sample rates differ significantly.

So, as a way to alert the user, it would be nice to somehow inform him what the sample rate of the AudioContext is. And as a bonus, if the sample rate isn't specified for the snippet, perhaps it can be defaulted to the sample rate of the AudioContext.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions