{
g_object_set(chan->filter, "volume", volume, NULL);
- if(notify != 0) {
- /* Send a notification */
- }
+ if(notify != 0)
+ event_throw(chan->glk, evtype_VolumeNotify, NULL, 0, notify);
}
/**
/* We're done - make sure the volume is at the requested level */
g_object_set(chan->filter, "volume", chan->target_volume, NULL);
- if(chan->volume_notify) {
- /* Send a notification */
- }
+ if(chan->volume_notify)
+ event_throw(chan->glk, evtype_VolumeNotify, NULL, 0, chan->volume_notify);
+
return FALSE;
}
g_object_get(chan->filter, "volume", ¤t_volume, NULL);
double volume_step = (chan->target_volume - current_volume) / steps_left;
- g_printerr("Time left: %.2f ms\nVolume difference: %.2f\nVolume step: %.4f\n",
- time_left_msec, chan->target_volume - current_volume, volume_step);
-
g_object_set(chan->filter, "volume", current_volume + volume_step, NULL);
return TRUE;