mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
examples: fix spelling mistake
This commit is contained in:
parent
de2e819fec
commit
e0af67b670
1 changed files with 5 additions and 5 deletions
|
|
@ -107,7 +107,7 @@ struct data {
|
||||||
struct buffer control_buffer[1];
|
struct buffer control_buffer[1];
|
||||||
|
|
||||||
int buffer_count;
|
int buffer_count;
|
||||||
bool start_faid_in;
|
bool start_fade_in;
|
||||||
double volume_accum;
|
double volume_accum;
|
||||||
uint32_t volume_offs;
|
uint32_t volume_offs;
|
||||||
|
|
||||||
|
|
@ -180,7 +180,7 @@ int init_data(struct data *data)
|
||||||
data->plugin_dir = str;
|
data->plugin_dir = str;
|
||||||
|
|
||||||
/* start not doing fade-in */
|
/* start not doing fade-in */
|
||||||
data->start_faid_in = true;
|
data->start_fade_in = true;
|
||||||
data->volume_accum = 0.0;
|
data->volume_accum = 0.0;
|
||||||
data->volume_offs = 0;
|
data->volume_offs = 0;
|
||||||
|
|
||||||
|
|
@ -302,7 +302,7 @@ static int fade_in(struct data *data)
|
||||||
|
|
||||||
spa_pod_builder_init(&b, buffer, buffer_size);
|
spa_pod_builder_init(&b, buffer, buffer_size);
|
||||||
spa_pod_builder_push_sequence(&b, &f[0], 0);
|
spa_pod_builder_push_sequence(&b, &f[0], 0);
|
||||||
data->volume_offs = 200;
|
data->volume_offs = 0;
|
||||||
do {
|
do {
|
||||||
spa_pod_builder_control(&b, data->volume_offs, SPA_CONTROL_Properties);
|
spa_pod_builder_control(&b, data->volume_offs, SPA_CONTROL_Properties);
|
||||||
spa_pod_builder_add_object(&b,
|
spa_pod_builder_add_object(&b,
|
||||||
|
|
@ -355,7 +355,7 @@ static void do_fade(struct data *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fade */
|
/* fade */
|
||||||
if (data->start_faid_in)
|
if (data->start_fade_in)
|
||||||
fade_in(data);
|
fade_in(data);
|
||||||
else
|
else
|
||||||
fade_out(data);
|
fade_out(data);
|
||||||
|
|
@ -364,7 +364,7 @@ static void do_fade(struct data *data)
|
||||||
data->control_io.buffer_id = 0;
|
data->control_io.buffer_id = 0;
|
||||||
|
|
||||||
/* alternate */
|
/* alternate */
|
||||||
data->start_faid_in = !data->start_faid_in;
|
data->start_fade_in = !data->start_fade_in;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int on_sink_node_ready(void *_data, int status)
|
static int on_sink_node_ready(void *_data, int status)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue