YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.server.PcmWaveHeader Class Reference

The CodecHeader of a pcm stream is a RIFF WAVE header (docs/tech.md, "Binary protocol"): 44 bytes with a format chunk of integer PCM and an empty data chunk. More...

Collaboration diagram for de.yaacc.snapcast.server.PcmWaveHeader:
Collaboration graph

Static Public Member Functions

static byte[] build (int sampleRate, int channels, int bitsPerSample)
 

Detailed Description

The CodecHeader of a pcm stream is a RIFF WAVE header (docs/tech.md, "Binary protocol"): 44 bytes with a format chunk of integer PCM and an empty data chunk.

The lengths of a stream are not known, so the RIFF size is that of the header alone and the data length is 0; a reader takes only the format from it (the app's own client does not trust the lengths either).


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