Lines Matching defs:vol
333 * stored in the map and vol arguments. The iterator must point to a "a(uu)"
336 * state of map and vol. In case of an empty array the channels field of both
337 * map and vol are set to 0. This function calls dbus_message_iter_next(iter)
339 static int get_volume_arg(DBusConnection *conn, DBusMessage *msg, DBusMessageIter *iter, pa_channel_map *map, pa_cvolume *vol) {
348 pa_assert(vol);
356 pa_cvolume_init(vol);
359 vol->channels = 0;
386 vol->values[map->channels] = chan_vol;
389 ++vol->channels;
599 pa_cvolume vol;
616 if (get_volume_arg(conn, msg, &msg_iter, &map, &vol) < 0)
639 volume_updated = (e->volume_valid != !!map.channels) || !pa_cvolume_equal(&e->volume, &vol);
640 e->volume = vol;
665 e->volume = vol;
800 pa_cvolume vol;
809 if (get_volume_arg(conn, msg, iter, &map, &vol) < 0)
814 updated = (e->volume_valid != !!map.channels) || !pa_cvolume_equal(&e->volume, &vol);
817 e->volume = vol;