rename codec parsing file
This commit is contained in:
parent
2d142b43fa
commit
5aa12757a0
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue