This file contains 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
function OpusWebmPacker() { | |
var channels = 2; | |
var sample_rate = 48000; | |
var position = 0; | |
var packets = []; | |
var buffer = new Uint8Array(4 + 1275); | |
var buffer_offset = 0; | |
function Concat() { |
This file contains 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
class WebmPacketizer : IPacketizer { | |
private UInt64 position = 0; | |
static WebmPacketizer () { | |
} | |
public WebmPacketizer() { | |
} | |
private static Byte[] Concat(params Byte[][] parts) { |
This file contains 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
class OggPacketizer : IPacketizer { | |
static UInt32[] checksumTable; | |
static UInt32 serial_counter = 1; | |
uint pageIndex = 0; | |
uint serial; | |
UInt64 position = 0; | |
static OggPacketizer() { | |
initChecksumTable(); | |
} |