MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / new

Method new

src/media/player.rs:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10impl MediaPlayer {
11 pub(crate) fn new() -> Result<Self, MediaError> {
12 let bgm_player = Player::new()?;
13 let voice_player = Player::new()?;
14 Ok(Self {
15 bgm_player,
16 voice_player,
17 })
18 }
19
20 pub(crate) fn change_bgm_volume(&self, volume: f32) {
21 self.bgm_player.change_volume(volume);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected