kmatheussen / jack_capture

A program for recording soundfiles with jack
http://www.notam02.no/arkiv/src/
Other
75 stars 28 forks source link

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

Open francis669 opened 4 years ago

francis669 commented 4 years ago

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 commented 3 years ago

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.