Ignore:
Timestamp:
Mar 24, 2006 8:41:20 PM (18 years ago)
Author:
bennylp
Message:

Added WAVE writer and resample port, and also found out why audio quality is poor with DirectSound?

File:
1 edited

Legend:

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

    r347 r358  
    499499     */ 
    500500    if (rate_out < rate_in) { 
    501         high_quality = 0; 
     501        //high_quality = 0; 
    502502    } 
    503503 
     
    580580         */ 
    581581        dst_buf = resample->buffer + resample->xoff*2; 
    582         for (i=0; i<resample->frame_size; ++i) 
    583             dst_buf[i] = input[i]; 
     582        for (i=0; i<resample->frame_size; ++i) dst_buf[i] = input[i]; 
    584583             
    585584        if (resample->factor >= 1) { 
     
    633632    } 
    634633} 
     634 
     635PJ_DEF(unsigned) pjmedia_resample_get_input_size(pjmedia_resample *resample) 
     636{ 
     637    PJ_ASSERT_RETURN(resample != NULL, 0); 
     638    return resample->frame_size; 
     639} 
     640 
Note: See TracChangeset for help on using the changeset viewer.