From 5aa12757a033674525012215c71e651389e4b8c6 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 3 Dec 2024 16:09:39 +0500 Subject: [PATCH] rename codec parsing file --- src/audio/{avcodec.rs => codec.rs} | 0 src/audio/mod.rs | 2 +- src/audio/sound_mgr.rs | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/audio/{avcodec.rs => codec.rs} (100%) 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,