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

signal processing example: show min/max block sizes #40

Merged
merged 1 commit into from
May 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/signal_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ def nextpow2(x):
except RuntimeError as e:
print('=== Error:', e)

print(' recorded blocks:', record_action.stats.blocks)
print(' played blocks:', play_action.stats.blocks)
print(' recorded blocks:', record_action.stats.blocks, end='')
print(' (min/max size: {0.min_blocksize}/{0.max_blocksize})'.format(
record_action.stats))
print(' played blocks:', play_action.stats.blocks, end='')
print(' (min/max size: {0.min_blocksize}/{0.max_blocksize})'.format(
play_action.stats))
print(' DSP calls:', dsp_calls)
print(' input underflows:', stream.stats.input_underflows)
print(' input overflows:', stream.stats.input_overflows)
Expand Down