From 52da94c951ddff48c9913f572ad9e4016f5af172 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Fri, 16 Jan 2026 20:57:12 -0600 Subject: [PATCH] misty --- soundwave.cm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/soundwave.cm b/soundwave.cm index b624207..5a978cf 100644 --- a/soundwave.cm +++ b/soundwave.cm @@ -119,11 +119,11 @@ soundwave.create = function(opts) { if (player.pcm_cache[path]) return player.pcm_cache[path] var decoded = null - if (path.endsWith('.wav')) { + if (ends_with(path, '.wav')) { decoded = wav.decode(bytes) - } else if (path.endsWith('.mp3')) { + } else if (ends_with(path, '.mp3')) { decoded = mp3.decode(bytes) - } else if (path.endsWith('.flac')) { + } else if (ends_with(path, '.flac')) { decoded = flac.decode(bytes) }