rename codec parsing file

This commit is contained in:
Muaz Ahmad 2024-12-03 16:09:39 +05:00
parent 2d142b43fa
commit 5aa12757a0
3 changed files with 3 additions and 3 deletions

View file

@ -57,6 +57,6 @@ pub fn init(
Ok(audio_control_in) Ok(audio_control_in)
} }
mod avcodec; mod codec;
mod pw; mod pw;
mod sound_mgr; mod sound_mgr;

View file

@ -8,7 +8,7 @@ use std::{
use crate::{config::Settings, player::PlayerEvent, utils::Error}; use crate::{config::Settings, player::PlayerEvent, utils::Error};
use super::{avcodec, pw, AudioEvent, SoundManager}; use super::{codec, pw, AudioEvent, SoundManager};
impl SoundManager { impl SoundManager {
pub fn init( pub fn init(
@ -30,7 +30,7 @@ impl SoundManager {
Ok(_) => (), Ok(_) => (),
}; };
}); });
let libav_context = avcodec::init()?; let decoder_context = codec::init()?;
Ok(SoundManager { Ok(SoundManager {
settings, settings,
error_chan, error_chan,