From 1c77d45165d63fb4b956cdff1039c0c259d96640 Mon Sep 17 00:00:00 2001 From: Gnlow Date: Wed, 27 Dec 2023 22:13:58 +0900 Subject: [PATCH] impl: get_sound_duration --- src/Entry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Entry.ts b/src/Entry.ts index 016fac5..3e14789 100644 --- a/src/Entry.ts +++ b/src/Entry.ts @@ -593,6 +593,9 @@ export class Entry { to - from, ) } + get_sound_duration(soundId: string) { + return this.sounds[soundId].duration + } play_bgm(soundId: string) { this.sound_something_with_block(soundId) }