summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-03-16 19:03:07 +0000
committerBenny Prijono <bennylp@teluu.com>2006-03-16 19:03:07 +0000
commit7e823acd1c44aa1f9f03d4a3de962c08c683d806 (patch)
treec1e2f3682b1d070e072c2ea734adc6a183d93c2a /pjmedia/include
parenta069e683724dba8caa58c8079b40999e21f64190 (diff)
Support for stereo audio (or N audio channels, for that matter)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@322 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/conference.h6
-rw-r--r--pjmedia/include/pjmedia/null_port.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/conference.h b/pjmedia/include/pjmedia/conference.h
index d6500a14..f822260f 100644
--- a/pjmedia/include/pjmedia/conference.h
+++ b/pjmedia/include/pjmedia/conference.h
@@ -75,6 +75,11 @@ enum pjmedia_conf_option
* @param sampling_rate Set the sampling rate of the bridge. This value
* is also used to set the sampling rate of the
* sound device.
+ * @param channel_count Number of channels in the PCM stream. Normally
+ * the value will be 1 for mono, but application may
+ * specify a value of 2 for stereo. Note that all
+ * ports that will be connected to the bridge MUST
+ * have the same number of channels as the bridge.
* @param samples_per_frame Set the number of samples per frame. This value
* is also used to set the sound device.
* @param bits_per_sample Set the number of bits per sample. This value
@@ -90,6 +95,7 @@ enum pjmedia_conf_option
PJ_DECL(pj_status_t) pjmedia_conf_create( pj_pool_t *pool,
unsigned max_slots,
unsigned sampling_rate,
+ unsigned channel_count,
unsigned samples_per_frame,
unsigned bits_per_sample,
unsigned options,
diff --git a/pjmedia/include/pjmedia/null_port.h b/pjmedia/include/pjmedia/null_port.h
index c4f7c071..36509181 100644
--- a/pjmedia/include/pjmedia/null_port.h
+++ b/pjmedia/include/pjmedia/null_port.h
@@ -33,6 +33,7 @@ PJ_BEGIN_DECL
* Create Null port.
*
* @param sampling_rate Sampling rate of the port.
+ * @param channel_count Number of channels.
* @param samples_per_frame Number of samples per frame.
* @param bits_per_sample Number of bits per sample.
* @param p_port Pointer to receive the port instance.
@@ -41,6 +42,7 @@ PJ_BEGIN_DECL
*/
PJ_DECL(pj_status_t) pjmedia_null_port_create( pj_pool_t *pool,
unsigned sampling_rate,
+ unsigned channel_count,
unsigned samples_per_frame,
unsigned bits_per_sample,
pjmedia_port **p_port );