fix for no opus output in time, max-delay doesn't work with 0 value
This commit is contained in:
parent
3a1c222340
commit
642ddc2dcd
2 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,7 @@ pub fn new_opus(metadata: Arc<util::Metadata>) -> Result<OpusEncoder, Box<dyn Er
|
|||
"--raw-bits", "16",
|
||||
"--raw-rate", samplerate.as_str(),
|
||||
"--raw-chan", channels.as_str(),
|
||||
"--raw-endianness", "1",
|
||||
"--max-delay", "1",
|
||||
"-", "-"
|
||||
]).stdin(Stdio::piped()).stdout(f).spawn()?;
|
||||
return Ok(OpusEncoder {cmd: cmd});
|
||||
|
|
|
@ -6,7 +6,6 @@ use std::process::{ChildStdin, ChildStdout};
|
|||
use std::sync::mpsc;
|
||||
use std::io::{Read, Write};
|
||||
use std::thread;
|
||||
|
||||
use crate::util;
|
||||
|
||||
pub trait Encoder {
|
||||
|
|
Loading…
Reference in a new issue