From 076275158e39af24d3a2bbb104e488dbb63416ca Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 23 Jul 2025 20:36:56 -0500 Subject: [PATCH] chore: lower audio tracing to trace level --- src/audio.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/audio.rs b/src/audio.rs index 0ba33c0..c242859 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -24,6 +24,7 @@ impl Audio { let format = DEFAULT_FORMAT; let channels = 4; let chunk_size = 128; + mixer::open_audio(frequency, format, 1, chunk_size).expect("Failed to open audio"); mixer::allocate_channels(channels); @@ -54,13 +55,11 @@ impl Audio { } /// Plays the "eat" sound effect. - /// - /// This function also logs the time since the last sound effect was played. pub fn eat(&mut self) { if let Some(chunk) = self.sounds.get(self.next_sound_index) { match mixer::Channel(0).play(chunk, 0) { Ok(channel) => { - tracing::info!("Playing sound #{} on channel {:?}", self.next_sound_index + 1, channel); + tracing::trace!("Playing sound #{} on channel {:?}", self.next_sound_index + 1, channel); } Err(e) => { tracing::warn!("Could not play sound #{}: {}", self.next_sound_index + 1, e);