X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/ed8e4373ca22966011827552d0cb7dff531539cd..af21fb6be8e226ce86b47ed923ee124e739ca48c:/disobedience/control.c diff --git a/disobedience/control.c b/disobedience/control.c index 663c815..6b3c106 100644 --- a/disobedience/control.c +++ b/disobedience/control.c @@ -364,8 +364,7 @@ GtkWidget *control_widget(void) { static int volume_supported(void) { /* TODO: if the server doesn't know how to set the volume [but isn't using * network play] then we should have volume_supported = FALSE */ - return (!rtp_supported - || (rtp_supported && backend && backend->set_volume)); + return 1; } /** @brief Update the volume control when it changes */ @@ -493,8 +492,7 @@ static void volume_adjusted(GtkAdjustment attribute((unused)) *a, * from the log. */ if(rtp_supported) { int l = nearbyint(left(v, b) * 100), r = nearbyint(right(v, b) * 100); - if(backend && backend->set_volume) - backend->set_volume(&l, &r); + rtp_setvol(&l, &r); } else disorder_eclient_set_volume(client, volume_completed, nearbyint(left(v, b) * 100),