summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2016-05-26 04:51:07 +0000
committerNanang Izzuddin <nanang@teluu.com>2016-05-26 04:51:07 +0000
commit781b2c7b3fc2ac26b42f6cf6efdf61516d4f9389 (patch)
tree0538d9c8f68b27389551372ef07c2941b4e8339a
parent4966b075a5871208d4e13bde517854beccf9c6e7 (diff)
Misc (re #1917): Missed inline implementation of pjmedia_snd_get_dev_count(), see also #1907 (thanks Marcus Froeschl for the report).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5321 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/include/pjmedia/sound.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/pjmedia/include/pjmedia/sound.h b/pjmedia/include/pjmedia/sound.h
index 73f379b6..9a29914a 100644
--- a/pjmedia/include/pjmedia/sound.h
+++ b/pjmedia/include/pjmedia/sound.h
@@ -153,7 +153,13 @@ PJ_INLINE(pj_status_t) pjmedia_snd_init(pj_pool_factory *factory)
*
* @return Number of devices.
*/
-PJ_DECL(int) pjmedia_snd_get_dev_count(void);
+PJ_INLINE(int) pjmedia_snd_get_dev_count(void)
+{
+ /* This function is inlined to avoid pjmedia's dependency on
+ * pjmedia-audiodev.
+ */
+ return (int)pjmedia_aud_dev_count();
+}
/**