Skip to content

Choppy sound when running through WASM on high-end mobile devices  #780

@Chiplis

Description

@Chiplis

Hey guys! I've been working on a GameBoy emulator which runs on the web: https://nicolas-siplis.com/ironboy/

I've been using Pixels + Winit + CPAL for handling video, audio and inputs and so far this has worked perfectly fine on all platforms I tested, including the web!

... Except on mobile devices. For some reason audio always seems choppy when running on mobile, and though I've tried I can't seem to pinpoint why it might be happening. It's hard to run things like flamegraph when you're debugging a mobile device, so I'm sort of at my wit's end.

If you want to take a look at the source code for the project (which isn't doing anything fancy with CPAL, AFAICT), check out https://github.com/nicolas-siplis/IronBoy/blob/master/src/apu.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions