diff options
Diffstat (limited to 'mumd')
| -rw-r--r-- | mumd/src/audio/input.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mumd/src/audio/input.rs b/mumd/src/audio/input.rs index 10aea91..5721996 100644 --- a/mumd/src/audio/input.rs +++ b/mumd/src/audio/input.rs @@ -45,6 +45,9 @@ pub fn callback<T: Sample>( } } +/// Something that can listen to audio and send it somewhere. +/// +/// One sample is assumed to be an encoded opus frame. See [opus::Encoder]. pub trait AudioInputDevice { /// Starts the device. fn play(&self) -> Result<(), AudioError>; |
