Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

bool mpd_run_set_volume ( struct mpd_connection connection,
unsigned  volume 
)

Shortcut for mpd_send_set_volume() and mpd_response_finish().

Parameters:
connection the connection to MPD
volume the volume, an integer between 0 and 100
Returns:
true on success, false on error

Definition at line 42 of file mixer.c.

References mpd_response_finish(), mpd_run_set_volume(), and mpd_send_set_volume().

Referenced by mpd_run_set_volume().

{
      return mpd_run_check(connection) &&
            mpd_send_set_volume(connection, volume) &&
            mpd_response_finish(connection);
}


Generated by  Doxygen 1.6.0   Back to index