Changeset 645 for pjproject/trunk


Ignore:
Timestamp:
Aug 4, 2006 11:06:05 AM (18 years ago)
Author:
bennylp
Message:

Removed the constness of the captured frame from pjmedia_snd_rec_cb specification (experimental, to support AEC since AEC needs to modify the buffer).

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

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

    r531 r645  
    106106typedef pj_status_t (*pjmedia_snd_rec_cb)(/* in */   void *user_data, 
    107107                                     /* in */   pj_uint32_t timestamp, 
    108                                      /* in */   const void *input, 
     108                                     /* in */   void *input, 
    109109                                     /* in*/    unsigned size); 
    110110 
  • pjproject/trunk/pjmedia/src/pjmedia/pasound.c

    r582 r645  
    9696 
    9797    status = (*stream->rec_cb)(stream->user_data, stream->timestamp,  
    98                                input, frameCount * stream->bytes_per_sample * 
    99                                stream->channel_count); 
     98                               (void*)input,  
     99                               frameCount * stream->bytes_per_sample * 
     100                                 stream->channel_count); 
    100101     
    101102    if (status==0)  
Note: See TracChangeset for help on using the changeset viewer.