|
YAACC - UPNP Client and Server
|
The Opus encoder of the platform behind the stream codecs of the Snapcast server and the Sendspin hub (a fake in tests). More...


Public Member Functions | |
| byte[] | encode (byte[] pcm) |
| void | close () |
| Frees the encoder. | |
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.
| 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().

| byte[] de.yaacc.audio.OpusPacketEncoder.encode | ( | byte[] | pcm | ) |
| pcm | one chunk: 960 frames of 16 bit stereo, little endian (20 ms at 48000 Hz) |
Implemented in de.yaacc.audio.MediaCodecOpusEncoder.
Referenced by de.yaacc.snapcast.server.OpusChunkEncoder.encode().
