|
@@ -1,6 +1,6 @@
|
1
|
1
|
var probe = require("../lib/probe.js"),
|
2
|
2
|
d3 = require("d3"),
|
3
|
|
- pcm = require("../lib/pcm.js");
|
|
3
|
+ pcmStream = require("../lib/pcm.js");
|
4
|
4
|
|
5
|
5
|
function getWaveform(filename, options, cb) {
|
6
|
6
|
|
|
@@ -14,7 +14,7 @@ function getWaveform(filename, options, cb) {
|
14
|
14
|
return cb("Exceeds max duration of " + options.maxDuration + "s");
|
15
|
15
|
}
|
16
|
16
|
|
17
|
|
- var stream = pcm(filename, {
|
|
17
|
+ var stream = pcmStream(filename, {
|
18
|
18
|
channels: options.channels
|
19
|
19
|
}),
|
20
|
20
|
samples = [];
|