From 6b6b34b136196ceeed1271046875348872391935 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 18 Jun 2006 02:02:36 +0000 Subject: Updated doxygen documentation to all headers in PJMEDIA git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@518 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/resampleplay.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'pjsip-apps') diff --git a/pjsip-apps/src/samples/resampleplay.c b/pjsip-apps/src/samples/resampleplay.c index e4440e15..f8768591 100644 --- a/pjsip-apps/src/samples/resampleplay.c +++ b/pjsip-apps/src/samples/resampleplay.c @@ -127,27 +127,14 @@ int main(int argc, char *argv[]) //ptime = samples_per_frame * 1000 / sampling_rate; /* Create the resample port. */ - status = pjmedia_resample_port_create( pool, 1, 1, - file_port->info.clock_rate, - sampling_rate, - channel_count, - (unsigned)( - samples_per_frame * 1.0 * - file_port->info.clock_rate / - sampling_rate), + status = pjmedia_resample_port_create( pool, file_port, + sampling_rate, 0, &resample_port); if (status != PJ_SUCCESS) { app_perror(THIS_FILE, "Unable to create resample port", status); return 1; } - /* Connect resample port to file port */ - status = pjmedia_port_connect( pool, resample_port, file_port); - if (status != PJ_SUCCESS) { - app_perror(THIS_FILE, "Error connecting ports", status); - return 1; - } - /* Create sound player port. */ status = pjmedia_snd_port_create( pool, /* pool */ -- cgit v1.2.3