()
| 9 | |
| 10 | impl 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); |
nothing calls this directly
no outgoing calls
no test coverage detected