Update of /cvsroot/alsa/alsa-lib/include
In directory sc8-pr-cvs1:/tmp/cvs-serv29217

Modified Files:
        pcm_simple.h 
Log Message:
Added snds_pcm_param_xrun()

Index: pcm_simple.h
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/include/pcm_simple.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pcm_simple.h        21 Jun 2003 08:55:40 -0000      1.1
+++ pcm_simple.h        22 Jun 2003 12:44:41 -0000      1.2
@@ -32,7 +32,7 @@
 /** Simple PCM latency type */
 enum snds_pcm_latency_type {
        /** normal latency - for standard playback or capture
-           (estimated latency in one direction 350ms) */
+           (estimated latency in one direction 350ms) (default) */
        SNDS_PCM_LATENCY_NORMAL = 0,
        /** medium latency - software phones etc.
            (estimated latency in one direction 50ms) */
@@ -44,12 +44,20 @@
 
 /** Simple PCM access type */
 enum snds_pcm_access_type {
-       /** interleaved access - channels are interleaved without any gaps among 
samples */
+       /** interleaved access - channels are interleaved without any gaps among 
samples (default) */
        SNDS_PCM_ACCESS_INTERLEAVED = 0,
        /** noninterleaved access - channels are separate without any gaps among 
samples */
        SNDS_PCM_ACCESS_NONINTERLEAVED
 };
 
+/** Simple PCM xrun type */
+enum snds_pcm_xrun_type {
+       /** driver / library will not care about xruns, stream runs forever (default) 
*/
+       SNDS_PCM_XRUN_NOCARE = 0,
+       /** driver / library stops the stream when xrun occurs */
+       SNDS_PCM_XRUN_STOP
+};
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -60,8 +68,7 @@
  *  \{
  */
 
-int snds_pcm_open(snds_pcm_t **pcm, const char *playback_name, const char 
*capture_name);
-int snds_pcm_open_lconf(snds_pcm_t **pcm, const char *plaback_name, const char 
*capture_name, snd_config_t *lconf);
+int snds_pcm_open(snds_pcm_t **pcm, const char *playback_name, const char 
*capture_name, snd_config_t *lconf);
 int snds_pcm_close(snds_pcm_t *pcm);
 int snds_pcm_poll_descriptors_count(snds_pcm_t *pcm);
 int snds_pcm_poll_descriptors(snds_pcm_t *pcm, struct pollfd *pfds, unsigned int 
space);
@@ -87,6 +94,7 @@
 int snds_pcm_param_format(snds_pcm_t *pcm, snd_pcm_format_t format, 
snd_pcm_subformat_t subformat);
 int snds_pcm_param_latency(snds_pcm_t *pcm, enum snds_pcm_latency_type latency);
 int snds_pcm_param_access(snds_pcm_t *pcm, enum snds_pcm_access_type access);
+int snds_pcm_param_xrun(snds_pcm_t *pcm, enum snds_pcm_xrun_type xrun);
 
 /** \} */
 



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to