20 lines
369 B
Rust
20 lines
369 B
Rust
|
|
// client/src/input/microphone.rs
|
||
|
|
|
||
|
|
use anyhow::Result;
|
||
|
|
|
||
|
|
pub struct MicrophoneCapture {
|
||
|
|
// no real fields yet
|
||
|
|
}
|
||
|
|
|
||
|
|
impl MicrophoneCapture {
|
||
|
|
pub fn new_stub() -> Self {
|
||
|
|
// real code would open /dev/snd, or use cpal / rodio / etc
|
||
|
|
MicrophoneCapture {}
|
||
|
|
}
|
||
|
|
|
||
|
|
pub fn capture_audio(&mut self) -> Result<()> {
|
||
|
|
// no-op
|
||
|
|
Ok(())
|
||
|
|
}
|
||
|
|
}
|