From 60fb5677579381a10db65cf32333fbabdd4a715e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 4 Aug 2006 11:06:05 +0000 Subject: Removed the constness of the captured frame from pjmedia_snd_rec_cb specification (experimental, to support AEC since AEC needs to modify the buffer). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@645 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia/sound.h | 2 +- pjmedia/src/pjmedia/pasound.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'pjmedia') diff --git a/pjmedia/include/pjmedia/sound.h b/pjmedia/include/pjmedia/sound.h index 9cd2bbca..ecff739a 100644 --- a/pjmedia/include/pjmedia/sound.h +++ b/pjmedia/include/pjmedia/sound.h @@ -105,7 +105,7 @@ typedef pj_status_t (*pjmedia_snd_play_cb)(/* in */ void *user_data, */ typedef pj_status_t (*pjmedia_snd_rec_cb)(/* in */ void *user_data, /* in */ pj_uint32_t timestamp, - /* in */ const void *input, + /* in */ void *input, /* in*/ unsigned size); /** diff --git a/pjmedia/src/pjmedia/pasound.c b/pjmedia/src/pjmedia/pasound.c index 9255f698..527c0a02 100644 --- a/pjmedia/src/pjmedia/pasound.c +++ b/pjmedia/src/pjmedia/pasound.c @@ -95,8 +95,9 @@ static int PaRecorderCallback(const void *input, stream->timestamp += frameCount; status = (*stream->rec_cb)(stream->user_data, stream->timestamp, - input, frameCount * stream->bytes_per_sample * - stream->channel_count); + (void*)input, + frameCount * stream->bytes_per_sample * + stream->channel_count); if (status==0) return paContinue; -- cgit v1.2.3