Skip to content

Use WebAudio API to loop music (to guarantee gapless loop) #143

Open
@Mouradif

Description

@Mouradif

I am switching to Monogatari from Renpy and I was extremely surprised to see that "looped" music has that very characteristic gap from basic loops in vanilla HTML5 Audio element with a "loop" attribute.

I suggest this function is updated to use Web Audio API instead and guarantee a perfect loop, accurately down to the single sample level.

I will try to implement it as a custom loop action instead of using play music for my project for now

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