Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arecord leaves doubled audio at end after a SIGTERM #179

Open
chconnor opened this issue Nov 30, 2022 · 0 comments
Open

arecord leaves doubled audio at end after a SIGTERM #179

chconnor opened this issue Nov 30, 2022 · 0 comments

Comments

@chconnor
Copy link

chconnor commented Nov 30, 2022

Hello: I issue a command like this:

arecord -t wav -c 1 -f S16_LE -r44100 -D hw:2,0 test.wav

It works fine, but then I hit ctrl-C to terminate. This works, but the file has "junk" at the end that repeats the last fraction of a second. E.g. in this demo file I ctrl-C when I say the word "one", and the recording is like "three, two, on-on":

https://caseyconnor.org/pub/audio/arecord_bug.wav

It's as if it is mistakenly writing a buffer an extra time?

(In my total ignorance and total lack of qualifications, I traced the code to here, but I get lost and can't see if anything is awry...)

(Edit: version 1.2.6 on Lubuntu 22.04 with a Shure X2U interface)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant