Skip to content

Commit

Permalink
renaming play and play_concurrently to play_in_tab and play; fixing s…
Browse files Browse the repository at this point in the history
…tereo_sound play
  • Loading branch information
martin-henz committed Sep 10, 2023
1 parent 115d6b5 commit 06c796e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundles/sound/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ export function play(sound: Sound): void {
throw new Error(
`${play.name} is expecting sound, but encountered ${sound}`,
);
} else if (get_duration(sound) <= 0) {
// Do nothing
} else if (get_duration(sound) < 0) {
throw new Error(`${play.name}: duration of sound is negative`);
} else {
// Instantiate audio context if it has not been instantiated.
if (!audioplayer) {
Expand Down

0 comments on commit 06c796e

Please sign in to comment.