Ignore:
Timestamp:
Oct 20, 2006 11:08:49 AM (15 years ago)
Author:
bennylp
Message:

Changed the processing of mp3 _options in mp3 writer with regard to bit_rate and quality to comply with LAME, also changed the pjsua_recorder_create() parameter to allow specifying mp3 options in one of the parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/mp3_writer.c

    r783 r785  
    200200        LConfig.format.LHV1.nVbrMethod = VBR_METHOD_DEFAULT; 
    201201        LConfig.format.LHV1.bWriteVBRHeader = 1; 
    202         //LConfig.format.LHV1.dwVbrAbr_bps = fport->mp3_option.bit_rate; 
     202        LConfig.format.LHV1.dwVbrAbr_bps = fport->mp3_option.bit_rate; 
    203203        LConfig.format.LHV1.bEnableVBR = 1; 
    204204    } 
     
    295295    } 
    296296 
    297     /* Calculate bitrate if it's not specified */ 
    298     if (fport->mp3_option.bit_rate == 0)  
     297    /* Calculate bitrate if it's not specified, only if it's not VBR. */ 
     298    if (fport->mp3_option.bit_rate == 0 && !fport->mp3_option.vbr)  
    299299        fport->mp3_option.bit_rate = sampling_rate * channel_count; 
    300300 
Note: See TracChangeset for help on using the changeset viewer.