Ignore:
Timestamp:
Sep 10, 2008 7:48:45 PM (13 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/wav_port.h

    r2039 r2270  
    143143 
    144144 
     145/** 
     146 * WAV file writer options. 
     147 */ 
     148enum pjmedia_file_writer_option 
     149{ 
     150    /** 
     151     * Tell the file writer to save the audio in PCM format. 
     152     */ 
     153    PJMEDIA_FILE_WRITE_PCM = 0, 
     154 
     155    /** 
     156     * Tell the file writer to save the audio in G711 Alaw format. 
     157     */ 
     158    PJMEDIA_FILE_WRITE_ALAW = 1, 
     159 
     160    /** 
     161     * Tell the file writer to save the audio in G711 Alaw format. 
     162     */ 
     163    PJMEDIA_FILE_WRITE_ULAW = 2, 
     164}; 
     165 
    145166 
    146167/** 
     
    155176 * @param samples_per_frame Number of samples per frame. 
    156177 * @param bits_per_sample   Number of bits per sample (eg 16). 
    157  * @param flags             Port creation flags (must be 0 at present). 
     178 * @param flags             Port creation flags. 
    158179 * @param buff_size         Buffer size to be allocated. If the value is  
    159180 *                          zero or negative, the port will use default buffer 
Note: See TracChangeset for help on using the changeset viewer.