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

The STREAMINFO block of a FLAC header (CodecHeader of the flac codec). More...

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

Public Member Functions

int getMinBlockSize ()
 
int getMaxBlockSize ()
 
int getSampleRate ()
 
int getChannels ()
 
int getBitsPerSample ()
 
long getTotalSamples ()
 The total number of samples per channel; 0 when unknown (a stream that is still being made).
 
boolean equals (Object other)
 
int hashCode ()
 

Static Public Member Functions

static FlacStreamInfo parse (byte[] header) throws StreamFormatException
 

Detailed Description

The STREAMINFO block of a FLAC header (CodecHeader of the flac codec).

The header must be "fLaC", then a STREAMINFO block of exactly 34 bytes, then metadata blocks whose lengths fit into the header and whose chain ends where the header ends. The numbers are those of the engine's supported ranges.

Member Function Documentation

◆ parse()

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

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