misty
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user