-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixisound_smoke.affine
More file actions
29 lines (21 loc) · 874 Bytes
/
Copy pathpixisound_smoke.affine
File metadata and controls
29 lines (21 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: MPL-2.0
// bindings #2 — @pixi/sound smoke test.
//
// The harness installs a mock at globalThis.__as_pixi_sound before
// importing the generated module; we re-export thin wrappers so the
// harness can drive each extern via stable names.
use PixiSound::{Sound, pixiSoundFrom, pixiSoundPlay, pixiSoundStop, pixiSoundPause, pixiSoundResume, pixiSoundSetVolume, pixiSoundSetLoop};
pub fn smokeFrom(url: String) -> Sound =
pixiSoundFrom(url);
pub fn smokePlay(s: Sound) -> Int =
pixiSoundPlay(s);
pub fn smokeStop(s: Sound) -> Int =
pixiSoundStop(s);
pub fn smokePause(s: Sound) -> Int =
pixiSoundPause(s);
pub fn smokeResume(s: Sound) -> Int =
pixiSoundResume(s);
pub fn smokeSetVolume(s: Sound, vol: Float) -> Int =
pixiSoundSetVolume(s, vol);
pub fn smokeSetLoop(s: Sound, loop: Bool) -> Int =
pixiSoundSetLoop(s, loop);