Tag Parser  6.2.2
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Public Member Functions | Public Attributes | List of all members
Media::WaveFormatHeader Class Reference

The WaveFormatHeader class parses the WAVEFORMATEX structure defined by MS. More...

#include <waveaudiostream.h>

Public Member Functions

 WaveFormatHeader ()
 Constructs a new WaveFormatHeader. More...
 
void parse (IoUtilities::BinaryReader &reader)
 Parses the WAVE "fmt " header segment using the specified reader. More...
 
MediaFormat format () const
 Returns the media format denoted by the format tag. More...
 
uint32 bitrate () const
 Calculates the bitrate from the header data. More...
 

Public Attributes

uint16 formatTag
 
uint16 channelCount
 
uint16 sampleRate
 
uint16 bytesPerSecond
 
uint16 chunkSize
 
uint16 bitsPerSample
 

Detailed Description

The WaveFormatHeader class parses the WAVEFORMATEX structure defined by MS.

Definition at line 9 of file waveaudiostream.h.

Constructor & Destructor Documentation

◆ WaveFormatHeader()

Media::WaveFormatHeader::WaveFormatHeader ( )

Constructs a new WaveFormatHeader.

Definition at line 24 of file waveaudiostream.cpp.

Member Function Documentation

◆ bitrate()

uint32 Media::WaveFormatHeader::bitrate ( ) const
inline

Calculates the bitrate from the header data.

Definition at line 29 of file waveaudiostream.h.

◆ format()

MediaFormat Media::WaveFormatHeader::format ( ) const

Returns the media format denoted by the format tag.

Definition at line 50 of file waveaudiostream.cpp.

◆ parse()

void Media::WaveFormatHeader::parse ( IoUtilities::BinaryReader &  reader)

Parses the WAVE "fmt " header segment using the specified reader.

Remarks
Reads 16 bytes from the associated stream.

Definition at line 37 of file waveaudiostream.cpp.

Member Data Documentation

◆ bitsPerSample

uint16 Media::WaveFormatHeader::bitsPerSample

Definition at line 23 of file waveaudiostream.h.

◆ bytesPerSecond

uint16 Media::WaveFormatHeader::bytesPerSecond

Definition at line 21 of file waveaudiostream.h.

◆ channelCount

uint16 Media::WaveFormatHeader::channelCount

Definition at line 19 of file waveaudiostream.h.

◆ chunkSize

uint16 Media::WaveFormatHeader::chunkSize

Definition at line 22 of file waveaudiostream.h.

◆ formatTag

uint16 Media::WaveFormatHeader::formatTag

Definition at line 18 of file waveaudiostream.h.

◆ sampleRate

uint16 Media::WaveFormatHeader::sampleRate

Definition at line 20 of file waveaudiostream.h.


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