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

The format of a pcm stream, read from the RIFF WAVE header of the CodecHeader message. More...

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

Public Member Functions

int getSampleRate ()
 
int getChannels ()
 
int getBitsPerSample ()
 
int getFrameBytes ()
 Bytes of one frame (one sample of every channel).
 
boolean equals (Object other)
 
int hashCode ()
 

Static Public Member Functions

static WaveFormat parse (byte[] header) throws StreamFormatException
 

Detailed Description

The format of a pcm stream, read from the RIFF WAVE header of the CodecHeader message.

Only what the engine needs is read and checked; the lengths in the header (the RIFF size and the length of the data chunk, which a streaming header can not know) are not trusted and not used.

Member Function Documentation

◆ parse()

static WaveFormat de.yaacc.multiroom.codec.WaveFormat.parse ( byte[] header) throws StreamFormatException
static
Exceptions
StreamFormatExceptionMALFORMED for a header that is no RIFF WAVE header, BAD_LENGTH for a chunk that does not fit, UNSUPPORTED_FORMAT for values the engine does not support

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