File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
var base64 = require ( './base64' )
4
+ var isBuffer = require ( 'is-buffer' )
4
5
5
6
// Given a regex, return a function that test if against a string
6
7
function fromRegex ( r ) {
@@ -35,7 +36,7 @@ function prefix (pre, name) {
35
36
function load ( source , options , defVal ) {
36
37
var loader =
37
38
// Basic audio loading
38
- isArrayBuffer ( source ) ? decodeBuffer
39
+ isArrayBuffer ( source ) || isBuffer ( source ) ? decodeBuffer
39
40
: isAudioFileName ( source ) ? loadAudioFile
40
41
: isPromise ( source ) ? loadPromise
41
42
// Compound objects
Original file line number Diff line number Diff line change 32
32
},
33
33
"dependencies" : {
34
34
"audio-context" : " ^1.0.0" ,
35
- "audio-decode" : " ^1.2.0 " ,
35
+ "audio-decode" : " ^1.2.5 " ,
36
36
"is-absolute" : " ^0.2.6" ,
37
- "is-audio-buffer" : " ^1.0.1" ,
37
+ "is-audio-buffer" : " ^1.0.8" ,
38
+ "is-buffer" : " ^1.1.5" ,
38
39
"is-relative" : " ^0.2.1" ,
39
40
"is-url" : " ^1.2.2" ,
40
41
"object-assign" : " ^4.1.1" ,
You can’t perform that action at this time.
0 commit comments