$NetBSD: patch-ah,v 1.8 2004/11/18 06:25:11 grant Exp $ --- libxmms/xmmsctrl.c.orig 2004-02-24 07:31:42.000000000 +1100 +++ libxmms/xmmsctrl.c @@ -382,6 +382,22 @@ void xmms_remote_play_pause(gint session remote_cmd(session, CMD_PLAY_PAUSE); } +void xmms_remote_main_volume_up(gint session) +{ + gint vol = xmms_remote_get_main_volume(session); + vol += 5; + xmms_remote_set_main_volume(session, vol); +} + +void xmms_remote_main_volume_down(gint session) +{ + gint vol = xmms_remote_get_main_volume(session); + vol -= 5; + if (vol < 0) + vol = 0; + xmms_remote_set_main_volume(session, vol); +} + gboolean xmms_remote_is_playing(gint session) { return remote_get_gboolean(session, CMD_IS_PLAYING);