WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia_wave_hdr Struct Reference

#include <wave.h>

Data Fields

struct {
   pj_uint32_t   riff
 
   pj_uint32_t   file_len
 
   pj_uint32_t   wave
 
riff_hdr
 
struct {
   pj_uint32_t   fmt
 
   pj_uint32_t   len
 
   pj_uint16_t   fmt_tag
 
   pj_uint16_t   nchan
 
   pj_uint32_t   sample_rate
 
   pj_uint32_t   bytes_per_sec
 
   pj_uint16_t   block_align
 
   pj_uint16_t   bits_per_sample
 
fmt_hdr
 
struct {
   pj_uint32_t   data
 
   pj_uint32_t   len
 
data_hdr
 

Detailed Description

This file describes the simpler/canonical version of a WAVE file. It does not support the full RIFF format specification.

See also
pjmedia_wave_hdr

Field Documentation

◆ riff

pj_uint32_t pjmedia_wave_hdr::riff

"RIFF" ASCII tag.

◆ file_len

pj_uint32_t pjmedia_wave_hdr::file_len

File length minus 8 bytes

◆ wave

pj_uint32_t pjmedia_wave_hdr::wave

"WAVE" ASCII tag.

◆ 

struct { ... } pjmedia_wave_hdr::riff_hdr

This structure describes RIFF WAVE file header

◆ fmt

pj_uint32_t pjmedia_wave_hdr::fmt

"fmt " ASCII tag.

◆ len

pj_uint32_t pjmedia_wave_hdr::len

16 for PCM.

Data length.

◆ fmt_tag

pj_uint16_t pjmedia_wave_hdr::fmt_tag

1 for PCM

◆ nchan

pj_uint16_t pjmedia_wave_hdr::nchan

Number of channels.

◆ sample_rate

pj_uint32_t pjmedia_wave_hdr::sample_rate

Sampling rate.

◆ bytes_per_sec

pj_uint32_t pjmedia_wave_hdr::bytes_per_sec

Average bytes per second.

◆ block_align

pj_uint16_t pjmedia_wave_hdr::block_align

nchannels * bits / 8

◆ bits_per_sample

pj_uint16_t pjmedia_wave_hdr::bits_per_sample

Bits per sample.

◆ 

struct { ... } pjmedia_wave_hdr::fmt_hdr

This structure describes format chunks/header

◆ data

pj_uint32_t pjmedia_wave_hdr::data

"data" ASCII tag.

◆ 

struct { ... } pjmedia_wave_hdr::data_hdr

The data header preceeds the actual data in the file.


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

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.