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

Ignore missing files #796

Merged
merged 1 commit into from
May 4, 2023
Merged

Ignore missing files #796

merged 1 commit into from
May 4, 2023

Conversation

devicenull
Copy link
Contributor

Occasionally, trunk-recorder tries to combine two wav files into one, but one of them doesn't actually exist. This fixes the issue by checking for file existence before sending files to sox - which will preserve any audio that exists in the remaining file.

This situation was causing a Failed to combine recordings, see above error. Make sure you have sox and fdkaac installed. error occasionally, and resulted in the audio not being properly saved.

Occasionally, trunk-recorder tries to combine two wav files into one, but
one of them doesn't actually exist. This fixes the issue by checking for
file existance before sending files to sox - which will preserve any audio
that exists in the remaining file.
@robotastic
Copy link
Owner

Interesting! I wonder what is causing the missing files... let me know if you have any clues. Maybe there is some delay in writing.

Either way, this is a good error check. Thanks!

@robotastic robotastic merged commit 547dd54 into robotastic:master May 4, 2023
1 check failed
@taclane
Copy link
Contributor

taclane commented May 4, 2023

Not sure if if's just me, but it looks like call_concluder.cc might need a:

#include <sys/stat.h>

to get this to compile on Ubuntu and pass the github Buildx check.

@taclane taclane mentioned this pull request May 4, 2023
@taclane taclane mentioned this pull request Jul 10, 2023
@robotastic
Copy link
Owner

Should be fixed, thanks to @taclane

@robotastic
Copy link
Owner

Or more accurately - a similar, but different bug was also addressed.

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

Successfully merging this pull request may close these issues.

None yet

3 participants