diff options
| author | Kyle Simpson <[email protected]> | 2018-03-06 00:23:31 +0000 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-03-05 16:23:31 -0800 |
| commit | 9baf1675b0d1837fe010cfbadac8e80fd9d53898 (patch) | |
| tree | 282c1b5e9291c8c10833fc5bad258412c7a4c09b /src/voice/handler.rs | |
| parent | Support sending files with an embed (#285) (diff) | |
| download | serenity-9baf1675b0d1837fe010cfbadac8e80fd9d53898.tar.xz serenity-9baf1675b0d1837fe010cfbadac8e80fd9d53898.zip | |
Backport parts of 7d162b9
* Backport parts of 7d162b9.
* Silent frame fixes.
* Read-only playback position.
* Opus Softclip for audio mixing.
* Documentation for Audio structs.
Not included (for now):
* Bitrate control
* Gutting/rework of Voice OpCodes, Heartbeats
* Opus stream mixing
* Minor adjustments due to manual edits.
Diffstat (limited to 'src/voice/handler.rs')
| -rw-r--r-- | src/voice/handler.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs index 82e117c..4124d66 100644 --- a/src/voice/handler.rs +++ b/src/voice/handler.rs @@ -257,10 +257,11 @@ impl Handler { /// Plays audio from a source. /// - /// Unlike `play`, this stops all other sources attached + /// Unlike [`play`] or [`play_returning`], this stops all other sources attached /// to the channel. /// /// [`play`]: #method.play + /// [`play_returning`]: #method.play_returning pub fn play_only(&mut self, source: Box<AudioSource>) -> LockedAudio { let player = Arc::new(Mutex::new(Audio::new(source))); self.send(VoiceStatus::SetSender(Some(player.clone()))); |