You are not logged in.

#1 2020-07-17 04:22:29

redshoe
Member
Registered: 2015-12-16
Posts: 255

[SOLVED] Sound sync going off after certain period with JACK

I am only using ALSA and JACK on my system. I am not using pulseaudio. I thought I resolved this issue by increasing the frame rate, usually 256 to 512, but this problem won't go away. I have configured my system to start JACK on X startup without specifying sample rate, period and frames. It seems like ALSA itself is starting with 48 kHz with 2 period and 256 frame rate.

I often times use USB sound card to record music using 'alsa_in'. This also, I am not specifying any period and frame rate. I did try setting them for both system default sound card and the USB sound card, but when I do this dropouts increase infinitely.. So I didn't even bother touching it. This seem to work fine, yet I get youtube video and audio sound sync going off after few minutes.

Following is my JACK initialization commands in my .xinit file

jack_control start
jack_control ds alsa
jack_control dps device hw:3

Note that hw:3 is my default system sound card that I am using.

Last edited by redshoe (2020-07-18 02:51:37)

Offline

#2 2020-07-18 02:51:06

redshoe
Member
Registered: 2015-12-16
Posts: 255

Re: [SOLVED] Sound sync going off after certain period with JACK

I think I solve the issue by myself.

As it turns out I was using different number of periods of 2 which is recommended number for PCI soundcard or onboard soundcard. I was using my laptop docking soundcard which is technically USB soundcard. I found out that for USB soundcards, number of periods of 3 is recommended. So, after using 3 periods I was able to somehow fix the problem or... I am not getting any sound sync issues. Below is the JACK setting that I am using.

jack_control ds alsa
jack_control dps device hw:3
jack_control dps rate 48000
jack_control dps nperiods 3
jack_control dps period 512
jack_control start

And I have found some useful sound sample rate, number of periods and frame rate: https://linuxmusicians.com/viewtopic.php?t=10707

Offline

Board footer

Powered by FluxBB