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

aaf plugin xrun:1711 error #19

Open
elabbing opened this issue Mar 16, 2021 · 1 comment
Open

aaf plugin xrun:1711 error #19

elabbing opened this issue Mar 16, 2021 · 1 comment

Comments

@elabbing
Copy link

Hello,
I set 2 host to use aaf plugin for TSN test. I followed TSN-doc guidelines and aaf.txt doc.
Simply, after hosts is ready and syncing though ptp4l, phc3sys, qdisc,
then I try to run a basic test, no switch between, back to back linked hosts,
obtaining the following error.

#Talker
sudo speaker-test -p 12500 -F S16_BE -c 2 -r 48000 -D aaf0

#Listener
sudo arecord -F 25000 -t raw -f S16_BE -c 2 -r 48000 -D aaf0 | \
>         aplay -F 25000 -t raw -f S16_BE -c 2 -r 48000 -D default
Playing raw data 'stdin' : Signed 16 bit Big Endian, Rate 48000 Hz, Stereo
Recording raw data 'stdin' : Signed 16 bit Big Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 24,460 ms long)
arecord: xrun:1711: read/write error, state = RUNNING

This error happens after a random period, tipically less than 60sec.
I followed TSN doc settings, but I noticed that value in aaf plugin configuration and cbs qdisc are suggested differrently between aaf.txt doc and TSN doc.

Any prompt to get out of this?
Many thanks

@elabbing
Copy link
Author

More, in aaf.txt doc is reported:

...
frames_per_pdu 6
...
Note that the plugin requires
the period size is multiple of the 'frames_per_pdu' configuration.

For example, to stream the pink noise generated by 'speaker-test', run:

$ speaker-test -F S16_BE -c 2 -r 48000 -D aaf0 -p 12500

Period = 12500
frames_per_pdu = 6
12500/6 = 2083.3333...

Now the result is not a integer.

Any hints, please?

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

1 participant