View this article only Newsgroups: comp.multimedia Date: 1996/01/03
hello,
i am trying to find out what the specifics of the header is for the au sound file format. i know it has components made up of sampling rate, number of channels, etc. but i would like to have specifics. i have raw input datat that i'd like to convert to a sound file by adding the appropriate header but need header specifics in order to do so.
On a Sun, you can do a "man 3 audio_hdr" to find the following info…
AUDIO_HDR(3) Audio Library AUDIO_HDR(3)
header is defined in <multimedia/audio_hdr.h> as follows: typedef struct { unsigned sample_rate; /* samples per second */ unsigned samples_per_unit; /* samples per unit */ unsigned bytes_per_unit; /* bytes per sample unit */ unsigned channels; /* # of interleaved channels */ unsigned encoding; /* data encoding format */ unsigned data_size; /* length of data (advisory) */ } Audio_hdr;
David Oseas