[pulseaudio-commits] r1090 - in /trunk/src/pulsecore: sink.c sink.h source.c source.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sun Jul 16 10:26:57 PDT 2006
Author: lennart
Date: Sun Jul 16 19:26:55 2006
New Revision: 1090
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1090&root=pulseaudio&view=rev
Log:
add a new boolean variable is_hardware to pa_sink/pa_source to denote wether the specific device is a hardware device or virtual/software
Modified:
trunk/src/pulsecore/sink.c
trunk/src/pulsecore/sink.h
trunk/src/pulsecore/source.c
trunk/src/pulsecore/source.h
Modified: trunk/src/pulsecore/sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/sink.c?rev=1090&root=pulseaudio&r1=1089&r2=1090&view=diff
==============================================================================
--- trunk/src/pulsecore/sink.c (original)
+++ trunk/src/pulsecore/sink.c Sun Jul 16 19:26:55 2006
@@ -102,6 +102,8 @@
s->sw_muted = 0;
s->hw_muted = 0;
+ s->is_hardware = 0;
+
s->get_latency = NULL;
s->notify = NULL;
s->set_hw_volume = NULL;
Modified: trunk/src/pulsecore/sink.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/sink.h?rev=1090&root=pulseaudio&r1=1089&r2=1090&view=diff
==============================================================================
--- trunk/src/pulsecore/sink.h (original)
+++ trunk/src/pulsecore/sink.h Sun Jul 16 19:26:55 2006
@@ -60,6 +60,8 @@
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);
Modified: trunk/src/pulsecore/source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/source.c?rev=1090&root=pulseaudio&r1=1089&r2=1090&view=diff
==============================================================================
--- trunk/src/pulsecore/source.c (original)
+++ trunk/src/pulsecore/source.c Sun Jul 16 19:26:55 2006
@@ -98,6 +98,8 @@
s->sw_muted = 0;
s->hw_muted = 0;
+ s->is_hardware = 0;
+
s->get_latency = NULL;
s->notify = NULL;
s->set_hw_volume = NULL;
Modified: trunk/src/pulsecore/source.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/source.h?rev=1090&root=pulseaudio&r1=1089&r2=1090&view=diff
==============================================================================
--- trunk/src/pulsecore/source.h (original)
+++ trunk/src/pulsecore/source.h Sun Jul 16 19:26:55 2006
@@ -61,6 +61,8 @@
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);
More information about the pulseaudio-commits
mailing list