Main Page   Class Hierarchy   Compound List   File List   Compound Members  

au_filehdr Struct Reference

#include <AUFile.h>

List of all members.

Public Member Functions

uint32_t magic __attribute__ ((packed))
uint32_t offset __attribute__ ((packed))
uint32_t data_size __attribute__ ((packed))
uint32_t encoding __attribute__ ((packed))
uint32_t sample_rate __attribute__ ((packed))
uint32_t channels __attribute__ ((packed))


Detailed Description

Struct of the AU file header

Note that we explicitly pack the structure elements to allow raw reads of the structure from the file and vice versa. (See http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC90)


Member Function Documentation

uint32_t channels au_filehdr::__attribute__ (packed)   
 

Number of interleaved channels (mono = 1, stereo = 2)

uint32_t sample_rate au_filehdr::__attribute__ (packed)   
 

Samples per second

uint32_t encoding au_filehdr::__attribute__ (packed)   
 

Data encoding

uint32_t data_size au_filehdr::__attribute__ (packed)   
 

Audio data length in bytes

uint32_t offset au_filehdr::__attribute__ (packed)   
 

Absolute byte offset into file to start of audio data

uint32_t magic au_filehdr::__attribute__ (packed)   
 

The magic number (".snd")


The documentation for this struct was generated from the following file:
Generated on Mon Feb 24 19:37:44 2003 by doxygen1.3-rc3