1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-24 14:23:18 +00:00
musix-oss/node_modules/node-opus/test/old/encode-file.js

13 lines
250 B
JavaScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
var ogg = require( 'ogg' );
var opus = require( '../../' );
var oggEncoder = new ogg.Encoder();
var opusEncoder = new opus.Encoder();
process.stdin.pipe( opusEncoder );
opusEncoder.pipe( oggEncoder.stream() );
oggEncoder.pipe( process.stdout );