From e03158426d316085bbec3088f3a54004dc832a0e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 20 Jun 2006 15:39:07 +0000 Subject: Yet again large diffs because of documentation/doxygen update git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@531 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/confbench.c | 19 ++++++++++++++++--- pjsip-apps/src/samples/confsample.c | 12 ++++++++++++ pjsip-apps/src/samples/level.c | 13 +++++++++++++ pjsip-apps/src/samples/playfile.c | 16 ++++++++++++++++ pjsip-apps/src/samples/playsine.c | 12 ++++++++++++ pjsip-apps/src/samples/recfile.c | 13 +++++++++++++ pjsip-apps/src/samples/resampleplay.c | 12 ++++++++++++ pjsip-apps/src/samples/siprtp.c | 1 + pjsip-apps/src/samples/sipstateless.c | 13 +++---------- pjsip-apps/src/samples/sndtest.c | 15 +++++++++++++++ pjsip-apps/src/samples/streamutil.c | 12 ++++++++++++ 11 files changed, 125 insertions(+), 13 deletions(-) (limited to 'pjsip-apps') diff --git a/pjsip-apps/src/samples/confbench.c b/pjsip-apps/src/samples/confbench.c index 2dae32b7..26a0fac6 100644 --- a/pjsip-apps/src/samples/confbench.c +++ b/pjsip-apps/src/samples/confbench.c @@ -17,11 +17,19 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* + +/** + * \page page_pjmedia_samples_confbench_c Samples: Benchmarking Conference Bridge + * * Benchmarking pjmedia (conference bridge+resample). For my use only, * and it only works in Win32. + * + * This file is pjsip-apps/src/samples/confbench.c + * + * \includelineno confbench.c */ + #include #include /* pj_getopt */ #include @@ -38,8 +46,8 @@ * HAS_RESAMPLE will activate resampling on about half * the port. */ -#define TEST_SET SMALL_SET -#define HAS_RESAMPLE 1 +#define TEST_SET LARGE_SET +#define HAS_RESAMPLE 0 #define SMALL_SET 16 @@ -265,7 +273,10 @@ int main() return 1; } + printf("Resampling is %s\n", (HAS_RESAMPLE?"active":"disabled")); + /* Create Null ports */ + printf("Creating %d null ports..\n", NULL_COUNT); for (i=0; i #include @@ -26,6 +38,7 @@ /* For logging purpose. */ #define THIS_FILE "recfile.c" + /* Configs */ #define CLOCK_RATE 44100 #define SAMPLES_PER_FRAME (CLOCK_RATE * 20 / 1000) diff --git a/pjsip-apps/src/samples/resampleplay.c b/pjsip-apps/src/samples/resampleplay.c index f8768591..9c7b2f1f 100644 --- a/pjsip-apps/src/samples/resampleplay.c +++ b/pjsip-apps/src/samples/resampleplay.c @@ -16,6 +16,18 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +/** + * \page page_pjmedia_samples_resampleplay_c Samples: Using Resample Port + * + * This example demonstrates how to use @ref PJMEDIA_RESAMPLE_PORT to + * change the sampling rate of the media streams. + * + * This file is pjsip-apps/src/samples/resampleplay.c + * + * \includelineno resampleplay.c + */ + #include #include #include diff --git a/pjsip-apps/src/samples/siprtp.c b/pjsip-apps/src/samples/siprtp.c index 42709660..4ffe0123 100644 --- a/pjsip-apps/src/samples/siprtp.c +++ b/pjsip-apps/src/samples/siprtp.c @@ -20,6 +20,7 @@ + /* Usage */ static const char *USAGE = " PURPOSE: \n" diff --git a/pjsip-apps/src/samples/sipstateless.c b/pjsip-apps/src/samples/sipstateless.c index c3cfe071..4c8354c5 100644 --- a/pjsip-apps/src/samples/sipstateless.c +++ b/pjsip-apps/src/samples/sipstateless.c @@ -103,20 +103,13 @@ int main() /* Create global endpoint: */ { - const pj_str_t *hostname; - const char *endpt_name; - /* Endpoint MUST be assigned a globally unique name. - * The name will be used as the hostname in Warning header. + * Ideally we should put hostname or public IP address, but + * we'll just use an arbitrary name here. */ - /* For this implementation, we'll use hostname for simplicity */ - hostname = pj_gethostname(); - endpt_name = hostname->ptr; - /* Create the endpoint: */ - - status = pjsip_endpt_create(&cp.factory, endpt_name, + status = pjsip_endpt_create(&cp.factory, "sipstateless", &sip_endpt); PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); } diff --git a/pjsip-apps/src/samples/sndtest.c b/pjsip-apps/src/samples/sndtest.c index 2c469775..c2b75b99 100644 --- a/pjsip-apps/src/samples/sndtest.c +++ b/pjsip-apps/src/samples/sndtest.c @@ -17,6 +17,21 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/** + * \page page_pjmedia_samples_sndtest_c Samples: Sound Card Benchmark + * + * This example can be used to benchmark the quality of the sound card + * installed in the system. At the end of the test, it will report + * the jitter and clock drifts of the device. + * + * This file is pjsip-apps/src/samples/sndtest.c + * + * Screenshots on WinXP: \image html sndtest.jpg + * + * \includelineno sndtest.c + */ + + #include #include #include diff --git a/pjsip-apps/src/samples/streamutil.c b/pjsip-apps/src/samples/streamutil.c index 29ba520e..4609df0b 100644 --- a/pjsip-apps/src/samples/streamutil.c +++ b/pjsip-apps/src/samples/streamutil.c @@ -18,6 +18,18 @@ */ +/** + * \page page_pjmedia_samples_streamutil_c Samples: Remote Streaming + * + * This example mainly demonstrates how to stream media file to remote + * peer using RTP. + * + * This file is pjsip-apps/src/samples/streamutil.c + * + * \includelineno streamutil.c + */ + + static const char *desc = " streamutil \n" " \n" -- cgit v1.2.3