CUGL 2.0
Cornell University Game Library
Public Attributes | List of all members
cugl::audio::WaveFMT Struct Reference

#include <CUWAVDecoder.h>

Public Attributes

Uint16 encoding
 
Uint16 channels
 
Uint32 frequency
 
Uint32 byterate
 
Uint16 blockalign
 
Uint16 bitspersample
 

Detailed Description

This struct contains the RIFF information at the start of a WAVE file

Normally, this is stored in the first three chunks at the start of a WAVE file.

Member Data Documentation

◆ bitspersample

Uint16 cugl::audio::WaveFMT::bitspersample

One of 8, 12, 16, or 4 for ADPCM

◆ blockalign

Uint16 cugl::audio::WaveFMT::blockalign

The number of bytes per sample block

◆ byterate

Uint32 cugl::audio::WaveFMT::byterate

The average bytes per second

◆ channels

Uint16 cugl::audio::WaveFMT::channels

The number of channels (1 = mono, 2 = stereo)

◆ encoding

Uint16 cugl::audio::WaveFMT::encoding

The encoding type (PCM, IEEE, MS ADPCM, IMA ADPCM)

◆ frequency

Uint32 cugl::audio::WaveFMT::frequency

The sample rate (11025, 22050, or 44100 Hz)


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