mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Remove extra ; s where they are not allowed in strict C99
This commit is contained in:
parent
168254f3bf
commit
55fdb0162c
5 changed files with 9 additions and 9 deletions
|
|
@ -480,7 +480,7 @@ static void handle_set_default_channels(DBusConnection *conn, DBusMessage *msg,
|
||||||
c->core->default_sample_spec.channels = n_channels;
|
c->core->default_sample_spec.channels = n_channels;
|
||||||
|
|
||||||
pa_dbus_send_empty_reply(conn, msg);
|
pa_dbus_send_empty_reply(conn, msg);
|
||||||
};
|
}
|
||||||
|
|
||||||
static void handle_get_default_sample_format(DBusConnection *conn, DBusMessage *msg, void *userdata) {
|
static void handle_get_default_sample_format(DBusConnection *conn, DBusMessage *msg, void *userdata) {
|
||||||
pa_dbusiface_core *c = userdata;
|
pa_dbusiface_core *c = userdata;
|
||||||
|
|
|
||||||
|
|
@ -444,7 +444,7 @@ static void handle_set_mute(DBusConnection *conn, DBusMessage *msg, DBusMessageI
|
||||||
pa_sink_input_set_mute(s->sink_input, mute, TRUE);
|
pa_sink_input_set_mute(s->sink_input, mute, TRUE);
|
||||||
|
|
||||||
pa_dbus_send_empty_reply(conn, msg);
|
pa_dbus_send_empty_reply(conn, msg);
|
||||||
};
|
}
|
||||||
|
|
||||||
static void handle_get_buffer_latency(DBusConnection *conn, DBusMessage *msg, void *userdata) {
|
static void handle_get_buffer_latency(DBusConnection *conn, DBusMessage *msg, void *userdata) {
|
||||||
pa_dbusiface_stream *s = userdata;
|
pa_dbusiface_stream *s = userdata;
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ static REAL IIR_HP_highpass(IIR_HP *i, REAL in) {
|
||||||
/* Highpass = Signal - Lowpass. Lowpass = Exponential Smoothing */
|
/* Highpass = Signal - Lowpass. Lowpass = Exponential Smoothing */
|
||||||
i->x += a0 * (in - i->x);
|
i->x += a0 * (in - i->x);
|
||||||
return in - i->x;
|
return in - i->x;
|
||||||
};
|
}
|
||||||
|
|
||||||
typedef struct FIR_HP_300Hz FIR_HP_300Hz;
|
typedef struct FIR_HP_300Hz FIR_HP_300Hz;
|
||||||
|
|
||||||
|
|
@ -362,21 +362,21 @@ static REAL AEC_nlms_pw(AEC *a, REAL d, REAL x_, float stepsize);
|
||||||
|
|
||||||
PA_GCC_UNUSED static float AEC_getambient(AEC *a) {
|
PA_GCC_UNUSED static float AEC_getambient(AEC *a) {
|
||||||
return a->dfast;
|
return a->dfast;
|
||||||
};
|
}
|
||||||
static void AEC_setambient(AEC *a, float Min_xf) {
|
static void AEC_setambient(AEC *a, float Min_xf) {
|
||||||
a->dotp_xf_xf -= a->delta; // subtract old delta
|
a->dotp_xf_xf -= a->delta; // subtract old delta
|
||||||
a->delta = (NLMS_LEN-1) * Min_xf * Min_xf;
|
a->delta = (NLMS_LEN-1) * Min_xf * Min_xf;
|
||||||
a->dotp_xf_xf += a->delta; // add new delta
|
a->dotp_xf_xf += a->delta; // add new delta
|
||||||
};
|
}
|
||||||
PA_GCC_UNUSED static void AEC_setgain(AEC *a, float gain_) {
|
PA_GCC_UNUSED static void AEC_setgain(AEC *a, float gain_) {
|
||||||
a->gain = gain_;
|
a->gain = gain_;
|
||||||
};
|
}
|
||||||
#if 0
|
#if 0
|
||||||
void AEC_openwdisplay(AEC *a);
|
void AEC_openwdisplay(AEC *a);
|
||||||
#endif
|
#endif
|
||||||
PA_GCC_UNUSED static void AEC_setaes(AEC *a, float aes_y2_) {
|
PA_GCC_UNUSED static void AEC_setaes(AEC *a, float aes_y2_) {
|
||||||
a->aes_y2 = aes_y2_;
|
a->aes_y2 = aes_y2_;
|
||||||
};
|
}
|
||||||
|
|
||||||
#define _AEC_H
|
#define _AEC_H
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@
|
||||||
#ifndef PA_GCC_WEAKREF
|
#ifndef PA_GCC_WEAKREF
|
||||||
#if defined(__GNUC__) && defined(__ELF__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4))
|
#if defined(__GNUC__) && defined(__ELF__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4))
|
||||||
/** Macro for usage of GCC's weakref attribute */
|
/** Macro for usage of GCC's weakref attribute */
|
||||||
#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x)));
|
#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x)))
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -610,7 +610,7 @@ void pa_dbus_append_basic_array(DBusMessageIter *iter, int item_type, const void
|
||||||
pa_assert_se(dbus_message_iter_append_basic(&array_iter, item_type, &((uint8_t*) array)[i * item_size]));
|
pa_assert_se(dbus_message_iter_append_basic(&array_iter, item_type, &((uint8_t*) array)[i * item_size]));
|
||||||
|
|
||||||
pa_assert_se(dbus_message_iter_close_container(iter, &array_iter));
|
pa_assert_se(dbus_message_iter_close_container(iter, &array_iter));
|
||||||
};
|
}
|
||||||
|
|
||||||
void pa_dbus_append_basic_variant(DBusMessageIter *iter, int type, void *data) {
|
void pa_dbus_append_basic_variant(DBusMessageIter *iter, int type, void *data) {
|
||||||
DBusMessageIter variant_iter;
|
DBusMessageIter variant_iter;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue