Kaynağa Gözat

Tidyup: use underscore naming

Ernest Wong 6 yıl önce
ebeveyn
işleme
0ec16f5a03
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      src/lib.js
  2. 2 2
      src/sb16.js

+ 1 - 1
src/lib.js

@@ -314,7 +314,7 @@ function FloatQueue(size)
         }
     };
 
-    this.shiftBlock = function(count)
+    this.shift_block = function(count)
     {
         var slice = new Float32Array(count);
 

+ 2 - 2
src/sb16.js

@@ -1582,8 +1582,8 @@ SB16.prototype.audio_send = function(size)
 
     this.bus.send("speaker-update-data",
     [
-        this.dac_buffers[0].shiftBlock(size),
-        this.dac_buffers[1].shiftBlock(size),
+        this.dac_buffers[0].shift_block(size),
+        this.dac_buffers[1].shift_block(size),
     ]);
 
     setTimeout(() => { this.dma_transfer_next(); }, 0);