imxspdif: Fix crackling sound
This commit is contained in:
parent
7cedd74706
commit
bcb6b61af5
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func (s *SPDIFSource) Enable() error {
|
|||
s.processPlay = nil
|
||||
}()
|
||||
|
||||
s.processRec = exec.Command("arecord", "-t", "wav", "-f", s.Format, fmt.Sprintf("-r%d", s.Bitrate), fmt.Sprintf("-c%d", s.Channels), "-D", "hw:"+s.DeviceIn, "-B0", "--buffer-size=512")
|
||||
s.processRec = exec.Command("arecord", "-t", "wav", "-f", s.Format, fmt.Sprintf("-r%d", s.Bitrate), fmt.Sprintf("-c%d", s.Channels), "-D", "hw:"+s.DeviceIn, "-F0", "--period-size=512", "-B0", "--buffer-size=512")
|
||||
s.processRec.Stdout = pipeW
|
||||
if err := s.processRec.Start(); err != nil {
|
||||
s.processPlay.Process.Kill()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue