YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.audio.OpusPacketEncoder Interface Reference

The Opus encoder of the platform behind the stream codecs of the Snapcast server and the Sendspin hub (a fake in tests). More...

Inheritance diagram for de.yaacc.audio.OpusPacketEncoder:
Inheritance graph
Collaboration diagram for de.yaacc.audio.OpusPacketEncoder:
Collaboration graph

Public Member Functions

byte[] encode (byte[] pcm)
 
void close ()
 Frees the encoder.
 

Detailed Description

The Opus encoder of the platform behind the stream codecs of the Snapcast server and the Sendspin hub (a fake in tests).

One instance is for one stream and one thread.

Member Function Documentation

◆ close()

void de.yaacc.audio.OpusPacketEncoder.close ( )

Frees the encoder.

Safe to call twice.

Implemented in de.yaacc.audio.MediaCodecOpusEncoder.

Referenced by de.yaacc.snapcast.server.OpusChunkEncoder.close().

Here is the caller graph for this function:

◆ encode()

byte[] de.yaacc.audio.OpusPacketEncoder.encode ( byte[] pcm)
Parameters
pcmone chunk: 960 frames of 16 bit stereo, little endian (20 ms at 48000 Hz)
Returns
the Opus packet for it, or null when the encoder gave none (the chunk is then left out)

Implemented in de.yaacc.audio.MediaCodecOpusEncoder.

Referenced by de.yaacc.snapcast.server.OpusChunkEncoder.encode().

Here is the caller graph for this function:

The documentation for this interface was generated from the following file: