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

jack_capture stops recording instantly when started remotely or on boot #40

Open
francis669 opened this issue Jul 30, 2020 · 1 comment

Comments

@francis669
Copy link

hello! im hoping that someone could shed some light on this cause i cant find any info around, jack_capture works well when i start it from the command line, however - i have a python script that reads a GPIO button and trigger jack capture, this also works fine when started from command line but when automated on boot it starts to record and stops immediately,
i also tried to trigger the command from pure data using "shell" and got the same behaviour. i wonder if anyone knows what im doing wrong? here is the output:

`main() find default file format
main() find filename
main() init jack 1
buf_size_in_bytes: 4104
main() init buffers
bufinit1. sizeof(long): 4, sizeof(float): 4, sizeof(double):8, sizeof(int):4, sizeof(void*):4
main() Open soundfile and setup disk callback.
main() Init waiting.
main() Init jack 2.
main() Everything initialized.
main() Start meterbridge.
main() Print some info.

Recording to "jack_capture_53.wav". Press or to stop.
main() Start helper thread.
main() Wait.
STDOUT: >>> Please wait while writing all data to disk. (shouldn't take long)
STDOUT: |"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""|
STDOUT:
STDOUT: 00:|---------* |
STDOUT: Buffer: 4.01s./4.01s Time: 0.00m. DHP: [ ] Overruns: 0 Xruns: 0
main() Stop recording and clean up.
connection thread finished
STDOUT: 00:|---------* |
STDOUT: Buffer: 4.01s./4.01s Time: 0.00m. DHP: [ ] Overruns: 0 Xruns: 0
Finished.
`

@kmatheussen
Copy link
Owner

I don't know. You should search for SEM_SIGNAL(stop_sem); in jack_capture.c, and add a printf("...\n") before every call to SEM_SIGNAL(stop_sem) so that we know why it was stopped.

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

2 participants