mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1090 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
a537b01cba
commit
6e38949039
4 changed files with 8 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ pa_sink* pa_sink_new(
|
||||||
s->sw_muted = 0;
|
s->sw_muted = 0;
|
||||||
s->hw_muted = 0;
|
s->hw_muted = 0;
|
||||||
|
|
||||||
|
s->is_hardware = 0;
|
||||||
|
|
||||||
s->get_latency = NULL;
|
s->get_latency = NULL;
|
||||||
s->notify = NULL;
|
s->notify = NULL;
|
||||||
s->set_hw_volume = NULL;
|
s->set_hw_volume = NULL;
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,8 @@ struct pa_sink {
|
||||||
pa_cvolume hw_volume, sw_volume;
|
pa_cvolume hw_volume, sw_volume;
|
||||||
int hw_muted, sw_muted;
|
int hw_muted, sw_muted;
|
||||||
|
|
||||||
|
int is_hardware;
|
||||||
|
|
||||||
void (*notify)(pa_sink*sink);
|
void (*notify)(pa_sink*sink);
|
||||||
pa_usec_t (*get_latency)(pa_sink *s);
|
pa_usec_t (*get_latency)(pa_sink *s);
|
||||||
int (*set_hw_volume)(pa_sink *s);
|
int (*set_hw_volume)(pa_sink *s);
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,8 @@ pa_source* pa_source_new(
|
||||||
s->sw_muted = 0;
|
s->sw_muted = 0;
|
||||||
s->hw_muted = 0;
|
s->hw_muted = 0;
|
||||||
|
|
||||||
|
s->is_hardware = 0;
|
||||||
|
|
||||||
s->get_latency = NULL;
|
s->get_latency = NULL;
|
||||||
s->notify = NULL;
|
s->notify = NULL;
|
||||||
s->set_hw_volume = NULL;
|
s->set_hw_volume = NULL;
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,8 @@ struct pa_source {
|
||||||
|
|
||||||
pa_cvolume hw_volume, sw_volume;
|
pa_cvolume hw_volume, sw_volume;
|
||||||
int hw_muted, sw_muted;
|
int hw_muted, sw_muted;
|
||||||
|
|
||||||
|
int is_hardware;
|
||||||
|
|
||||||
void (*notify)(pa_source*source);
|
void (*notify)(pa_source*source);
|
||||||
pa_usec_t (*get_latency)(pa_source *s);
|
pa_usec_t (*get_latency)(pa_source *s);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue