Link Search Menu Expand Document

danog\MadelineProto\OggWriter

Back to index

Author: Daniil Gentili daniil@daniil.it

Async OGG stream writer.

Properties

  • $streamId: int

Method list:

Methods:

__construct(\Amp\ByteStream\WritableStream $out, ?int $streamId = NULL)

Write an ogg OPUS file.

Parameters:

  • $out: \Amp\ByteStream\WritableStream
  • $streamId: ?int

See also:

  • \Amp\ByteStream\WritableStream

writeHeader(int $channels, int $sampleRate, string $opusVersion): void

Parameters:

  • $channels: int
  • $sampleRate: int
  • $opusVersion: string

writeChunk(string $chunk, int $granuleDiff, bool $eos): void

Parameters:

  • $chunk: string
  • $granuleDiff: int
  • $eos: bool

Generated by danog/phpdoc