mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-11-23 01:10:40 -05:00
dc5fd4f15e
Apart from being less code, this actually gives us a tiny performance improvement. Up until a few years ago, if you pass `NULL` as the marshaller for a signal, GLib would fall back to `g_cclosure_marshal_generic` which uses libffi to pack/unpack its arguments. One could avoid this by specifying a more specific marshaller which would then be used to immediately pack and unpack into GValues with the correct type. Lately however, as a way of optimizing signal emission (which can be quite expensive), GLib added a possibility to set a `va_marshaller`, which skips the unnecessary GValue packing and unpacking and just uses a valist variant. Since the performance difference is big enough, if the marshaller argument is NULL, `g_signal_new()` will now check for the simple marshallers (return type NONE and a single argument) and set both the generic and the valist marshaller. In other words, less code for us with behind-the-scenes optimizations. In case you also want va_marshallers for more complex signals, you can use `g_signal_set_va_marshaller()`. |
||
---|---|---|
.gitlab-ci | ||
.gitignore | ||
.gitlab-ci.yml | ||
gvc-channel-map-private.h | ||
gvc-channel-map.c | ||
gvc-channel-map.h | ||
gvc-mixer-card-private.h | ||
gvc-mixer-card.c | ||
gvc-mixer-card.h | ||
gvc-mixer-control-private.h | ||
gvc-mixer-control.c | ||
gvc-mixer-control.h | ||
gvc-mixer-event-role.c | ||
gvc-mixer-event-role.h | ||
gvc-mixer-sink-input.c | ||
gvc-mixer-sink-input.h | ||
gvc-mixer-sink.c | ||
gvc-mixer-sink.h | ||
gvc-mixer-source-output.c | ||
gvc-mixer-source-output.h | ||
gvc-mixer-source.c | ||
gvc-mixer-source.h | ||
gvc-mixer-stream-private.h | ||
gvc-mixer-stream.c | ||
gvc-mixer-stream.h | ||
gvc-mixer-ui-device.c | ||
gvc-mixer-ui-device.h | ||
gvc-pulseaudio-fake.h | ||
libgnome-volume-control.doap | ||
meson_options.txt | ||
meson.build | ||
README.md | ||
test-audio-device-selection.c |
libgnome-volume-control
libgnome-volume-control is a copy library that's supposed to be used as a git sub-module. If your project uses some of libgnome-volume-control's strings in a user-facing manner, don't forget to add those files to your POTFILES.in for translation.