Ignore:
Timestamp:
Oct 20, 2006 11:08:49 AM (18 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/pjsip/src/pjsua-lib/pjsua_media.c

    r783 r785  
    797797 */ 
    798798PJ_DEF(pj_status_t) pjsua_recorder_create( const pj_str_t *filename, 
    799                                            unsigned file_format, 
    800                                            const pj_str_t *encoding, 
     799                                           unsigned enc_type, 
     800                                           void *enc_param, 
    801801                                           pj_ssize_t max_size, 
    802802                                           unsigned options, 
     
    812812    char path[128]; 
    813813    pj_str_t ext; 
     814    int file_format; 
    814815    pjmedia_port *port; 
    815816    pj_status_t status; 
     
    821822    PJ_ASSERT_RETURN(max_size == 0 || max_size == -1, PJ_EINVAL); 
    822823 
    823     /* Don't support file format at present */ 
    824     PJ_ASSERT_RETURN(file_format == 0, PJ_EINVAL); 
    825  
    826     /* Don't support encoding at present */ 
    827     PJ_ASSERT_RETURN(encoding == NULL, PJ_EINVAL); 
     824    /* Don't support encoding type at present */ 
     825    PJ_ASSERT_RETURN(enc_type == 0, PJ_EINVAL); 
    828826 
    829827    if (pjsua_var.rec_cnt >= PJ_ARRAY_SIZE(pjsua_var.recorder)) 
     
    875873                                                pjsua_var.mconf_cfg.samples_per_frame, 
    876874                                                pjsua_var.mconf_cfg.bits_per_sample, 
    877                                                 NULL, &port); 
     875                                                enc_param, &port); 
    878876    } else { 
    879877        port = NULL; 
Note: See TracChangeset for help on using the changeset viewer.