/*
 * call-seq:
 *  xc.playback_volume_set(channel, volume) -> result
 *
 * Sets playback volume for _channel_ to _volume_.
 */
static VALUE
c_playback_volume_set (VALUE self, VALUE channel, VALUE volume)
{
        RbXmmsClient *xmms = NULL;
        xmmsc_result_t *res;

        Data_Get_Struct (self, RbXmmsClient, xmms);

        CHECK_DELETED (xmms);

        Check_Type (channel, T_SYMBOL);
        Check_Type (volume, T_FIXNUM);

        res = xmmsc_playback_volume_set (xmms->real,
                                         rb_id2name (SYM2ID (channel)),
                                         NUM2UINT (volume));

        return TO_XMMS_CLIENT_RESULT (self, res);
}