summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-05-25 19:24:15 +0200
committerMichal Ratajsky <[email protected]>2014-05-25 19:24:15 +0200
commit9b4cafb0b47c6ec453d301bd812ae7001955dc2a (patch)
tree1412c23e8e7b213f8085c40b715c90f8115657c6
parentf594ba9dea7bbf1ae262f28a949bc50a7444b528 (diff)
downloadlibmatemixer-9b4cafb0b47c6ec453d301bd812ae7001955dc2a.tar.bz2
libmatemixer-9b4cafb0b47c6ec453d301bd812ae7001955dc2a.tar.xz
Remove latency-offset
-rw-r--r--backends/pulse/pulse-device.c3
-rw-r--r--libmatemixer/matemixer-device-port.c29
-rw-r--r--libmatemixer/matemixer-device-port.h5
3 files changed, 3 insertions, 34 deletions
diff --git a/backends/pulse/pulse-device.c b/backends/pulse/pulse-device.c
index 4421e97..dbc287c 100644
--- a/backends/pulse/pulse-device.c
+++ b/backends/pulse/pulse-device.c
@@ -243,8 +243,7 @@ mate_mixer_pulse_device_new (const pa_card_info *info)
pa_proplist_gets (p_info->proplist, "device.icon_name"),
p_info->priority,
direction,
- status,
- p_info->latency_offset);
+ status);
ports = g_list_prepend (ports, port);
}
diff --git a/libmatemixer/matemixer-device-port.c b/libmatemixer/matemixer-device-port.c
index 63da869..ca84ef6 100644
--- a/libmatemixer/matemixer-device-port.c
+++ b/libmatemixer/matemixer-device-port.c
@@ -28,7 +28,6 @@ struct _MateMixerDevicePortPrivate
gchar *name;
gchar *icon;
guint32 priority;
- gint64 latency_offset;
MateMixerDevicePortDirection direction;
MateMixerDevicePortStatus status;
@@ -43,7 +42,6 @@ enum
PROP_PRIORITY,
PROP_DIRECTION,
PROP_STATUS,
- PROP_LATENCY_OFFSET,
N_PROPERTIES
};
@@ -89,9 +87,6 @@ mate_mixer_device_port_get_property (GObject *object,
case PROP_STATUS:
g_value_set_flags (value, port->priv->status);
break;
- case PROP_LATENCY_OFFSET:
- g_value_set_int64 (value, port->priv->latency_offset);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -127,9 +122,6 @@ mate_mixer_device_port_set_property (GObject *object,
case PROP_STATUS:
port->priv->status = g_value_get_flags (value);
break;
- case PROP_LATENCY_OFFSET:
- port->priv->latency_offset = g_value_get_int64 (value);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -206,15 +198,6 @@ mate_mixer_device_port_class_init (MateMixerDevicePortClass *klass)
0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
- properties[PROP_LATENCY_OFFSET] = g_param_spec_int64 (
- "latency-offset",
- "Latency offset",
- "Latency offset of the device port",
- G_MININT64,
- G_MAXINT64,
- 0,
- G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
-
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
g_type_class_add_private (object_class, sizeof (MateMixerDevicePortPrivate));
@@ -226,8 +209,7 @@ mate_mixer_device_port_new (const gchar *identifier,
const gchar *icon,
guint32 priority,
MateMixerDevicePortDirection direction,
- MateMixerDevicePortStatus status,
- gint64 latency_offset)
+ MateMixerDevicePortStatus status)
{
return g_object_new (MATE_MIXER_TYPE_DEVICE_PORT,
"identifier", identifier,
@@ -236,7 +218,6 @@ mate_mixer_device_port_new (const gchar *identifier,
"priority", priority,
"direction", direction,
"status", status,
- "latency-offset", latency_offset,
NULL);
}
@@ -287,11 +268,3 @@ mate_mixer_device_port_get_status (MateMixerDevicePort *port)
return port->priv->status;
}
-
-gint64
-mate_mixer_device_port_get_latency_offset (MateMixerDevicePort *port)
-{
- g_return_val_if_fail (MATE_MIXER_IS_DEVICE_PORT (port), 0);
-
- return port->priv->latency_offset;
-}
diff --git a/libmatemixer/matemixer-device-port.h b/libmatemixer/matemixer-device-port.h
index d9dfbfa..f21caaf 100644
--- a/libmatemixer/matemixer-device-port.h
+++ b/libmatemixer/matemixer-device-port.h
@@ -61,8 +61,7 @@ MateMixerDevicePort *mate_mixer_device_port_new (const gchar *i
const gchar *icon,
guint32 priority,
MateMixerDevicePortDirection direction,
- MateMixerDevicePortStatus status,
- gint64 latency_offset);
+ MateMixerDevicePortStatus status);
const gchar *mate_mixer_device_port_get_identifier (MateMixerDevicePort *port);
@@ -76,8 +75,6 @@ MateMixerDevicePortDirection mate_mixer_device_port_get_direction (MateMixerDevi
MateMixerDevicePortStatus mate_mixer_device_port_get_status (MateMixerDevicePort *port);
-gint64 mate_mixer_device_port_get_latency_offset (MateMixerDevicePort *port);
-
G_END_DECLS
#endif /* MATEMIXER_PORT_H */