From c01d4035a3f2f715137640ced61b7b332bb80f38 Mon Sep 17 00:00:00 2001 From: Garrett Hyde Date: Sun, 8 Apr 2018 20:32:39 -0600 Subject: [PATCH] Fix audio and video timing Fixes #21 --- .gitignore | 1 + roll.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 24ce9b6..c864735 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +*.swp unused/* diff --git a/roll.sh b/roll.sh index 9603e19..d7682db 100755 --- a/roll.sh +++ b/roll.sh @@ -63,7 +63,7 @@ if has? afplay; then afplay /tmp/roll.s16 & elif has? aplay; then # On Linux, if |aplay| available, stream raw sound. - obtainium $audio_raw | aplay -Dplug:default -q -f S16_LE -r 8000 & + obtainium $audio_raw | aplay -Dplug:default -q -f S16_LE -r 16000 & elif has? play; then # On Cygwin, if |play| is available (via sox), pre-fetch compressed audio. obtainium $audio_gsm >/tmp/roll.gsm.wav @@ -77,12 +77,12 @@ audpid=$! python <(cat <