buddy

node MVC discord bot
Log | Files | Refs | README

Silence.js (220B)


      1 'use strict';
      2 
      3 const { Readable } = require('stream');
      4 
      5 const SILENCE_FRAME = Buffer.from([0xf8, 0xff, 0xfe]);
      6 
      7 class Silence extends Readable {
      8   _read() {
      9     this.push(SILENCE_FRAME);
     10   }
     11 }
     12 
     13 module.exports = Silence;