]> code.delx.au - pulseaudio/commitdiff
add a new boolean variable is_hardware to pa_sink/pa_source to denote wether the...
authorLennart Poettering <lennart@poettering.net>
Sun, 16 Jul 2006 17:26:55 +0000 (17:26 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 16 Jul 2006 17:26:55 +0000 (17:26 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1090 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/sink.c
src/pulsecore/sink.h
src/pulsecore/source.c
src/pulsecore/source.h

index ee6850f085902498c414daa2077ca34e6742dfce..8acb77156493a4177752da99404bea936bc004c4 100644 (file)
@@ -102,6 +102,8 @@ pa_sink* pa_sink_new(
     s->sw_muted = 0;
     s->hw_muted = 0;
 
+    s->is_hardware = 0;
+    
     s->get_latency = NULL;
     s->notify = NULL;
     s->set_hw_volume = NULL;
index fdff0522d806a8df9f9228fe994037550176ce87..1a6bc98860c4a0bfffe7fcdf8faf346a2a39fae1 100644 (file)
@@ -60,6 +60,8 @@ struct pa_sink {
     pa_cvolume hw_volume, sw_volume;
     int hw_muted, sw_muted;
 
+    int is_hardware;
+
     void (*notify)(pa_sink*sink);
     pa_usec_t (*get_latency)(pa_sink *s);
     int (*set_hw_volume)(pa_sink *s);
index 84151a929ff054fc066569ec4129454378d074f4..48b6daea185989d78e4afc3cdadd138606ea2419 100644 (file)
@@ -98,6 +98,8 @@ pa_source* pa_source_new(
     s->sw_muted = 0;
     s->hw_muted = 0;
 
+    s->is_hardware = 0;
+
     s->get_latency = NULL;
     s->notify = NULL;
     s->set_hw_volume = NULL;
index 6255c1156bd48b97ae6b5e910fef596c4564fff3..878ae34d738370e375c10d9550b062f0871de673 100644 (file)
@@ -61,6 +61,8 @@ struct pa_source {
 
     pa_cvolume hw_volume, sw_volume;
     int hw_muted, sw_muted;
+
+    int is_hardware;
     
     void (*notify)(pa_source*source);
     pa_usec_t (*get_latency)(pa_source *s);