aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2017-10-12 20:28:30 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2017-10-12 20:28:30 -0400
commit093b87878bb1fabb2077d412c46cfd9b15998f8d (patch)
tree01b27c4a0b203fce163a8e837ace7417c660ad5b /include
parent1770a22cf1c445331668deb45f0f5da80e143150 (diff)
added PCM_NONBLOCK macro
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/pcm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h
index 5e976d4..c68a77d 100644
--- a/include/tinyalsa/pcm.h
+++ b/include/tinyalsa/pcm.h
@@ -88,6 +88,15 @@ extern "C" {
*/
#define PCM_MONOTONIC 0x00000008
+/** If used with @pcm_open and @pcm_params_get,
+ * it will not cause the function to block if
+ * the PCM is not available. It will also cause
+ * the functions @ref pcm_readi and @ref pcm_writei
+ * to exit if they would cause the caller to wait.
+ * @ingroup libtinyalsa-pcm
+ * */
+#define PCM_NONBLOCK 0x00000010
+
/** For inputs, this means the PCM is recording audio samples.
* For outputs, this means the PCM is playing audio samples.
* @ingroup libtinyalsa-pcm