[pulseaudio-commits] r1091 - in /trunk/src: pulse/def.h pulsecore/protocol-native.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Jul 16 10:28:11 PDT 2006


Author: lennart
Date: Sun Jul 16 19:28:10 2006
New Revision: 1091

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1091&root=pulseaudio&view=rev
Log:
add new PA_SOURCE_HARDWARE/PA_SINK_HARDWARE flag

Modified:
    trunk/src/pulse/def.h
    trunk/src/pulsecore/protocol-native.c

Modified: trunk/src/pulse/def.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/def.h?rev=1091&root=pulseaudio&r1=1090&r2=1091&view=diff
==============================================================================
--- trunk/src/pulse/def.h (original)
+++ trunk/src/pulse/def.h Sun Jul 16 19:28:10 2006
@@ -295,13 +295,15 @@
 /** Special sink flags. \since 0.8  */
 typedef enum pa_sink_flags {
     PA_SINK_HW_VOLUME_CTRL = 1,   /**< Supports hardware volume control */
-    PA_SINK_LATENCY = 2           /**< Supports latency querying */
+    PA_SINK_LATENCY = 2,          /**< Supports latency querying */
+    PA_SINK_HARDWARE = 4          /**< Is a hardware sink of some kind, in contrast to "virtual"/software sinks */
 } pa_sink_flags_t;
 
 /** Special source flags. \since 0.8  */
 typedef enum pa_source_flags {
     PA_SOURCE_HW_VOLUME_CTRL = 1,  /**< Supports hardware volume control */
-    PA_SOURCE_LATENCY = 2          /**< Supports latency querying */
+    PA_SOURCE_LATENCY = 2,         /**< Supports latency querying */
+    PA_SOURCE_HARDWARE = 4         /**< Is a hardware source of some kind, in contrast to "virtual"/software source */
 } pa_source_flags_t;
 
 /** A generic free() like callback prototype */

Modified: trunk/src/pulsecore/protocol-native.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/protocol-native.c?rev=1091&root=pulseaudio&r1=1090&r2=1091&view=diff
==============================================================================
--- trunk/src/pulsecore/protocol-native.c (original)
+++ trunk/src/pulsecore/protocol-native.c Sun Jul 16 19:28:10 2006
@@ -1265,7 +1265,10 @@
         PA_TAG_STRING, sink->monitor_source->name,
         PA_TAG_USEC, pa_sink_get_latency(sink),
         PA_TAG_STRING, sink->driver,
-        PA_TAG_U32, (sink->get_hw_volume ? PA_SINK_HW_VOLUME_CTRL : 0) | (sink->get_latency ? PA_SINK_LATENCY : 0),
+        PA_TAG_U32,
+        (sink->get_hw_volume ? PA_SINK_HW_VOLUME_CTRL : 0) |
+        (sink->get_latency ? PA_SINK_LATENCY : 0) |
+        (sink->is_hardware ? PA_SINK_HARDWARE : 0),
         PA_TAG_INVALID);
 }
 
@@ -1285,7 +1288,10 @@
         PA_TAG_STRING, source->monitor_of ? source->monitor_of->name : NULL,
         PA_TAG_USEC, pa_source_get_latency(source),
         PA_TAG_STRING, source->driver,
-        PA_TAG_U32, (source->get_hw_volume ? PA_SOURCE_HW_VOLUME_CTRL : 0) | (source->get_latency ? PA_SOURCE_LATENCY : 0),
+        PA_TAG_U32,
+        (source->get_hw_volume ? PA_SOURCE_HW_VOLUME_CTRL : 0) |
+        (source->get_latency ? PA_SOURCE_LATENCY : 0) |
+        (source->is_hardware ? PA_SOURCE_HARDWARE : 0),
         PA_TAG_INVALID);
 }
 




More information about the pulseaudio-commits mailing list