diff options
Diffstat (limited to 'pjmedia/include/pjmedia/sound_port.h')
-rw-r--r-- | pjmedia/include/pjmedia/sound_port.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/sound_port.h b/pjmedia/include/pjmedia/sound_port.h index 4c47da43..2bc98d4d 100644 --- a/pjmedia/include/pjmedia/sound_port.h +++ b/pjmedia/include/pjmedia/sound_port.h @@ -25,6 +25,7 @@ * @brief Media port connection abstraction to sound device. */ #include <pjmedia-audiodev/audiodev.h> +#include <pjmedia/clock.h> #include <pjmedia/port.h> PJ_BEGIN_DECL @@ -269,6 +270,19 @@ PJ_DECL(pj_status_t) pjmedia_snd_port_get_ec_tail(pjmedia_snd_port *snd_port, /** + * Get a clock source from the sound port. + * + * @param snd_port The sound port. + * @param dir Sound port's direction. + * + * @return The clock source. + */ +PJ_DECL(pjmedia_clock_src *) +pjmedia_snd_port_get_clock_src( pjmedia_snd_port *snd_port, + pjmedia_dir dir ); + + +/** * Connect a port to the sound device port. If the sound device port has a * sound recorder device, then this will start periodic function call to * the port's put_frame() function. If the sound device has a sound player |