Skip to content

prebuilt: Some music methods are not working [ wasm_patches.py ] #44

Open
@FinFetChannel

Description

@FinFetChannel

On pygbag 0.2.0, running the following code in debug mode:

Input
import pygame as pg

pg.init()
pg.mixer.init()

sound = pg.mixer.Sound("thunder.ogg")

try:
    sound.play()
    print("play pass")
except:
    print("play fail")

try:
    sound.stop()
    print("stop pass")
except:
    print("stop fail")

try:
    sound.fadeout(100)
    print("fadeout pass")
except:
    print("fadeout fail")

try:
    sound.set_volume(0.5)
    print("set_volume pass")
except:
    print("set_volume fail")

try:
    sound.get_volume()
    print("get_volume pass")
except:
    print("get_volume fail")

Results in this output:

play pass
stop pass
fadeout fail
set_volume pass
get_volume pass
get_num_channels fail
get_length fail
get_raw fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpygame prebuiltissue may come from pygame-wasm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions