bacon 3.23.0

background rust compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// A dummy sound player which does nothing
pub struct SoundPlayer {}
impl SoundPlayer {
    pub fn new(_base_volume: Volume) -> anyhow::Result<Self> {
        Err(anyhow::anyhow!(
            "Bacon is compiled without the sound feature"
        ))
    }
    pub fn play(
        &self,
        _beep: PlaySoundCommand,
    ) {
        // should never be called as the  sound player is not instantiated
    }
}