Group PJMEDIA_WAVE¶
-
group
PJMEDIA_WAVE
Representation of RIFF/WAVE file format.
This the the low level representation of RIFF/WAVE file format. For higher abstraction, please see WAV File Player and File Writer (Recorder).
Defines
-
PJMEDIA_RIFF_TAG
¶ Standard RIFF tag to identify RIFF file format in the WAVE header.
-
PJMEDIA_WAVE_TAG
¶ Standard WAVE tag to identify WAVE header.
-
PJMEDIA_FMT_TAG
¶ Standard FMT tag to identify format chunks.
-
PJMEDIA_DATA_TAG
¶ Standard DATA tag to identify data chunks.
-
PJMEDIA_FACT_TAG
¶ Standard FACT tag to identify fact chunks.
-
PJMEDIA_WAVE_NORMALIZE_SUBCHUNK
(ch)¶ Normalize subchunk header from little endian (the representation of RIFF file) into host’s endian.
Enums
Functions
-
void
pjmedia_wave_hdr_file_to_host
(pjmedia_wave_hdr *hdr)¶ On big-endian hosts, this function swaps the byte order of the values in the WAVE header fields. On little-endian hosts, this function does nothing.
Application SHOULD call this function after reading the WAVE header chunks from a file.
- Parameters
hdr – The WAVE header.
-
void
pjmedia_wave_hdr_host_to_file
(pjmedia_wave_hdr *hdr)¶ On big-endian hosts, this function swaps the byte order of the values in the WAVE header fields. On little-endian hosts, this function does nothing.
Application SHOULD call this function before writing the WAVE header to a file.
- Parameters
hdr – The WAVE header.
-
struct
pjmedia_wave_hdr
¶ - #include <wave.h>
This file describes the simpler/canonical version of a WAVE file. It does not support the full RIFF format specification.
-
struct
pjmedia_wave_subchunk
¶ - #include <wave.h>
This structure describes generic RIFF subchunk header.
-