diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -182,7 +182,7 @@ ModulationController.prototype = {
 
     getRawWavData: function(array, lbr, version) {
         var rawPcmData = this.transcode(array, lbr, version);
-        return this.getWavArray(samples);
+        return this.getWavArray(rawPcmData);
     },
 
     fillU16: function(arr, off, val) {
index: fix getRawWavData

We were passing the wrong variable name to getWavArray(), and as such it
wasn't working at all.