summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-02-21 08:51:37 +0000
committerBenny Prijono <bennylp@teluu.com>2008-02-21 08:51:37 +0000
commit7d6f281850fadac4b6824e6785ecd90ab0d0b27e (patch)
tree0e0cccd6ac889b54efcf80761e2ad8c3a3209465 /pjmedia/include
parent65c07c4340a2c8ce192545f1360c8129946c7139 (diff)
Ticket #468: Added support for non looping playback in memory player
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1808 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/mem_port.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/pjmedia/include/pjmedia/mem_port.h b/pjmedia/include/pjmedia/mem_port.h
index 63c5f335..47b911f2 100644
--- a/pjmedia/include/pjmedia/mem_port.h
+++ b/pjmedia/include/pjmedia/mem_port.h
@@ -38,6 +38,21 @@ PJ_BEGIN_DECL
* situation where filesystems are not available in the target system.
*/
+
+/**
+ * Memory player options.
+ */
+enum pjmedia_mem_player_option
+{
+ /**
+ * Tell the memory player to return NULL frame when the whole
+ * buffer has been played instead of rewinding the buffer back
+ * to start position.
+ */
+ PJMEDIA_MEM_NO_LOOP = 1
+};
+
+
/**
* Create the buffer based playback to play the media from the specified
* buffer.
@@ -52,7 +67,7 @@ PJ_BEGIN_DECL
* @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 options Option flags.
+ * @param options Option flags, see #pjmedia_mem_player_option
* @param p_port Pointer to receive the port instance.
*
* @return PJ_SUCCESS on success, or the appropriate