Ignore:
Timestamp:
Sep 10, 2008 7:48:45 PM (16 years ago)
Author:
nanang
Message:

Ticket #614: Added support for writing and reading WAV files encoded as 8 bit A-law/U-law.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/wave.h

    r2039 r2270  
    6767#define PJMEDIA_DATA_TAG        ('a'<<24|'t'<<16|'a'<<8|'d') 
    6868 
     69/** 
     70 * Standard FACT tag to identify fact chunks. 
     71 */ 
     72#define PJMEDIA_FACT_TAG        ('t'<<24|'c'<<16|'a'<<8|'f') 
     73 
     74 
     75/** 
     76 * Enumeration of format compression tag. 
     77 */ 
     78typedef enum { 
     79    PJMEDIA_WAVE_FMT_TAG_PCM    = 1, 
     80    PJMEDIA_WAVE_FMT_TAG_ALAW   = 6, 
     81    PJMEDIA_WAVE_FMT_TAG_ULAW   = 7 
     82} pjmedia_wave_fmt_tag; 
     83 
    6984 
    7085/** 
     
    7287 * It does not support the full RIFF format specification. 
    7388 */ 
     89#pragma pack(2) 
    7490struct pjmedia_wave_hdr 
    7591{ 
     
    99115    } data_hdr; 
    100116}; 
     117#pragma pack() 
    101118 
    102119/** 
Note: See TracChangeset for help on using the changeset viewer.