Skip to content

[BUG] Audio issue in Firefox (caused by Firefox internal audio compressor?) #13

@teadrinker

Description

@teadrinker

I noticed some strange audio issues in Firefox in one of my Microw8 carts and my guess is Firefox runs an internal audio compressor inside the browser...

Here's a quick test that ramps the gain of a 50hz sine, should start clipping after 2s, but in firefox is doesn't...

include "../../include/microw8-api.cwa"

export fn snd(sampleIndex: i32) -> f32 {

	let inline x = sampleIndex as f32 / 88200.0;

	sin(x * 3.1415 * 2.0 * 50.0) * x * 0.5
}

It might be good if MicroW8 would clip audio to range -1 to 1, to increase the likelihood of a more consistent behaviour across systems/browsers?

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