Noah 7 years ago
parent
commit
aae48003f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      audiogram/waveform.js

+ 2 - 2
audiogram/waveform.js View File

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