YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.codec.VorbisHeaders Class Reference

The three Vorbis headers (identification, comment, setup) in the Ogg pages of the CodecHeader of the codec ogg. More...

Collaboration diagram for de.yaacc.multiroom.codec.VorbisHeaders:
Collaboration graph

Public Member Functions

byte[] getIdentification ()
 
byte[] getSetup ()
 
int getSampleRate ()
 
int getChannels ()
 

Static Public Member Functions

static VorbisHeaders parse (byte[] header) throws StreamFormatException
 

Detailed Description

The three Vorbis headers (identification, comment, setup) in the Ogg pages of the CodecHeader of the codec ogg.

The platform decoder needs the identification and the setup packet. Only a stream of one or two channels in the range of rates of the engine is accepted; the sample size is 16 bit (what the decoder gives).

Member Function Documentation

◆ parse()

static VorbisHeaders de.yaacc.multiroom.codec.VorbisHeaders.parse ( byte[] header) throws StreamFormatException
static
Exceptions
StreamFormatExceptionMALFORMED when the three headers are not there, in this order, and well formed; UNSUPPORTED_FORMAT for a rate or channel count the engine does not support
Here is the call graph for this function:

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