mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
change to hardware2
This commit is contained in:
parent
4a4dd4b334
commit
4361edd63f
1 changed files with 4 additions and 4 deletions
|
|
@ -7,9 +7,8 @@ import time
|
|||
import select
|
||||
|
||||
def start_ltc_stream():
|
||||
# Launch ffmpeg piped into ltcdump
|
||||
ffmpeg = subprocess.Popen(
|
||||
["ffmpeg", "-f", "alsa", "-i", "default", "-ac", "1", "-ar", "48000", "-f", "s16le", "-"],
|
||||
["ffmpeg", "-f", "alsa", "-i", "hw:2", "-ac", "1", "-ar", "48000", "-f", "s16le", "-"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.DEVNULL
|
||||
)
|
||||
|
|
@ -19,11 +18,12 @@ def start_ltc_stream():
|
|||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.DEVNULL,
|
||||
text=True,
|
||||
bufsize=1 # Line-buffered
|
||||
bufsize=1
|
||||
)
|
||||
ffmpeg.stdout.close() # Let ltcdump consume the pipe
|
||||
ffmpeg.stdout.close()
|
||||
return ffmpeg, ltcdump
|
||||
|
||||
|
||||
def main(stdscr):
|
||||
curses.curs_set(0)
|
||||
stdscr.nodelay(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue