This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class StreamMixer { | |
streams: Array<{ | |
id: string, | |
audioSource: any, | |
gainNode: any, | |
mediaStream: MediaStream | |
}>; | |
destination: any; | |
audioCtx: any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IConfig{ | |
chunkSize:number | |
} | |
class IterableFile implements AsyncIterable<string>{ | |
private reader : FileReader; | |
private file:File | |
private config : IConfig = {chunkSize : 64 * 1024} | |
constructor( file:File,config :Partial<IConfig> = {}){ | |
this.file = file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spawn = require('child_process').spawn; | |
var compile = spawn('./node_modules/.bin/tsc',['-w']); | |
compile.stdout.on('data', function (data) { | |
console.log('stdout: ' + data.toString()); | |
}); | |
compile.stderr.on('data', function (data) { | |
console.log('stderr: ' + data.toString()); | |
}); | |
compile.on('exit', function (code) { | |
console.log('child process exited with code ' + code.toString()); |