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

Plc auto #514

Merged
merged 7 commits into from Mar 27, 2022
Merged

Plc auto #514

merged 7 commits into from Mar 27, 2022

Conversation

cchafe
Copy link
Collaborator

@cchafe cchafe commented Mar 22, 2022

implements auto mode for bufstrategy 3
CLI syntax as with bufstrategy 1 but meaning is different
the example session below uses auto15 which specifies start with 15ms for bufstrategy 3 tolerance setting
during the first 2 seconds of connection statistics are gathered and
then the 15ms gets modified up or down, servo'ed by longterm std dev and avg max
interpacket arrival

tested (fedora):

server: (at 64 FPP, stereo)
./jacktrip -S --bufstrategy 3 --udprt -p1 -q auto15 -I 1

client:
PIPEWIRE_LATENCY="64/48000" ./jacktrip -C --bufstrategy 3 --udprt -I 1 -n 1 -q auto15

Copy link
Collaborator

@ntonnaett ntonnaett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay to me.

int longTermCnt;
int plcUnderruns;
int lastPlcUnderruns;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a lot of these could be private.

I would also like to see that we use mCamelCase for members everywhere. But this can be done automatically with clang-tidy. So don't start to change this manually.

@ntonnaett ntonnaett merged commit 5e61568 into dev Mar 27, 2022
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

5 participants