In my Google search I find this function:
I wonder what does this 'buffer' mean or what it does?Code:var InputSource = function(stream) { var buffers = []; . . . if (this.ws) { // only have websocket set binary.pack({ ch_num:buffers.length, buffer_length:BUFFER_LENGTH, buffer_array:buffers }, function(buffer) { this.ws.send(buffer); }); } };
There is a global declaration var buffer = [[], []]; outside the function.
The code is three hundred lines long but this is the part which I want.
Thanks
Note: I don't use their code. I want to create my own code but I don't know what does this mean.



Reply With Quote
Bookmarks