This commit is contained in:
2026-01-16 20:57:12 -06:00
parent 9b9d88f5a3
commit 52da94c951

View File

@@ -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)
}