diff --git a/src/audio/avcodec.rs b/src/audio/codec.rs similarity index 100% rename from src/audio/avcodec.rs rename to src/audio/codec.rs diff --git a/src/audio/mod.rs b/src/audio/mod.rs index 24d4d77..d5814cf 100644 --- a/src/audio/mod.rs +++ b/src/audio/mod.rs @@ -57,6 +57,6 @@ pub fn init( Ok(audio_control_in) } -mod avcodec; +mod codec; mod pw; mod sound_mgr; diff --git a/src/audio/sound_mgr.rs b/src/audio/sound_mgr.rs index 9e2df68..4fe86ba 100644 --- a/src/audio/sound_mgr.rs +++ b/src/audio/sound_mgr.rs @@ -8,7 +8,7 @@ use std::{ use crate::{config::Settings, player::PlayerEvent, utils::Error}; -use super::{avcodec, pw, AudioEvent, SoundManager}; +use super::{codec, pw, AudioEvent, SoundManager}; impl SoundManager { pub fn init( @@ -30,7 +30,7 @@ impl SoundManager { Ok(_) => (), }; }); - let libav_context = avcodec::init()?; + let decoder_context = codec::init()?; Ok(SoundManager { settings, error_chan,