renamed to PCM actual little endian output
This commit is contained in:
parent
6d83be0221
commit
3a1c222340
2 changed files with 3 additions and 3 deletions
|
@ -33,6 +33,6 @@ pub fn new_aac(metadata: Arc<util::Metadata>) -> Result<AACDecoder, Box<dyn Erro
|
|||
let cmd = Command::new("faad")
|
||||
.args(["-f", "2", "-w", "-q", "-"])
|
||||
.stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?;
|
||||
let bytes_per_sample_chunk = 1024 * 2 * metadata.audio.channels as usize;
|
||||
return Ok(AACDecoder {cmd: cmd, raw_buff_size: bytes_per_sample_chunk, raw_sample_type: util::RawMediaType::PCM16BE})
|
||||
let bytes_per_sample_chunk = (metadata.audio.samplerate * 2 * metadata.audio.channels as u32) as usize;
|
||||
return Ok(AACDecoder {cmd: cmd, raw_buff_size: bytes_per_sample_chunk, raw_sample_type: util::RawMediaType::PCM16LE})
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ pub struct NALUPacket {
|
|||
#[derive(Copy, Clone)]
|
||||
pub enum RawMediaType {
|
||||
YUV420P,
|
||||
PCM16BE,
|
||||
PCM16LE,
|
||||
}
|
||||
|
||||
pub struct RawMedia {
|
||||
|
|
Loading…
Reference in a new issue