Skip to content
Snippets Groups Projects
Commit 977eb34d authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Rename test-case-1-capture.py to test-case-capture.py

parent d1921608
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ linkcolor: blue
colorlinks: true
---
*Draft report - 2023-10-20*
*Draft report - 2023-10-25*
[PipeWire](https://pipewire.org/) is *de facto* the new audio server used by all
......@@ -181,7 +181,7 @@ onboard to the usb audio output.
![Test case 1](audio-test-1.png){width=50%}
Two scripts are available to run this test `test-case-1-capture.py` and
Two scripts are available to run this test `test-case-capture.py` and
`test-case-1-run.py`.
- The first one is to capture sound coming from the sound cards of the board and
......@@ -216,7 +216,7 @@ secs the capture sample rate. Due to a hardward limitation, the capture sample
rate is reconfigured between 32000, 44100 and 48000 instead of the unspported
8000 and 16000.
The script `test-case-1-capture.py` can be used to record sound generated by the
The script `test-case-capture.py` can be used to record sound generated by the
board sound cards during the test (i.e. with changing capture sample rate of the
stream redirected to 1 output) to evaluate how the sound is affected.
......@@ -268,7 +268,7 @@ it will measure the time required to run `pw-jack sndfile-jackplay` when only 1
other instance is running, then with 11 other instances, 21 other instances, etc
until 51 instances.
The script `test-case-1-capture.py` can be used to record sound generated by the
The script `test-case-capture.py` can be used to record sound generated by the
board sound cards during the test (i.e. with many instances of
`pw-jack sndfile-jackplay`) to evaluate how the sound is affected.
......@@ -285,10 +285,13 @@ it only differs by not starting a third moving stream but instead by using
`stress-ng` to simulate a high system load in order to generate xruns. The number
of xruns will be measured with `pw-top` and/or `pw-profiler`.
The script `test-case-1-capture.py` can be used to record sound generated by the
The script `test-case-capture.py` can be used to record sound generated by the
board sound cards during the test (i.e. under high system load) to evaluate how
the sound is affected.
**TODO**:
- Write the pw-top/pw-profiler logging part.
# References
- [T10085: Initial pipewire evaluation on r-car](https://phabricator.apertis.org/T10085)
- [PipeWire's website](https://pipewire.org/)
......
......@@ -27,9 +27,9 @@ def pw_record(node, file):
if __name__ == "__main__":
print("Running capture for test-case 1")
print("Running capture for test-case")
my_pw_dump = pw_dump("pw-dump-temp-tc1-capture.json")
my_pw_dump = pw_dump("pw-dump-temp-capture.json")
my_nodes_name = []
for pw_obj in my_pw_dump:
......@@ -46,11 +46,11 @@ if __name__ == "__main__":
print(f"Start capture for pw nodes:\n {my_nodes_name}")
pw_rec1 = pw_record(my_nodes_name[0], "test-case-1-capture1.wav")
pw_rec2 = pw_record(my_nodes_name[1], "test-case-1-capture2.wav")
pw_rec1 = pw_record(my_nodes_name[0], "test-case-capture1.wav")
pw_rec2 = pw_record(my_nodes_name[1], "test-case-capture2.wav")
print("Press any key to stop the capture...")
input()
os.killpg(os.getpgid(pw_rec1.pid), signal.SIGTERM)
os.killpg(os.getpgid(pw_rec2.pid), signal.SIGTERM)
print("End of capture for test-case 1")
print("End of capture for test-case")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment