Skip to main content

set_volume

Function set_volume 

Source
pub fn set_volume(percent: u16) -> Result<(), HostError>
Expand description

Sets the playback volume, 0-200 % (100 when the bot joins; BAD_REQUEST above 200). Changing it means decoding and re-encoding the Opus audio, so hosts without an Opus encoder answer UNSUPPORTED: call it anyway and tell the member.