Skip to content

fcplay/cplay: Improve information printout regarding to buffer configuration and track playback progression#36

Open
ujfalusi wants to merge 5 commits into
alsa-project:masterfrom
ujfalusi:topic/better_size_stuff
Open

fcplay/cplay: Improve information printout regarding to buffer configuration and track playback progression#36
ujfalusi wants to merge 5 commits into
alsa-project:masterfrom
ujfalusi:topic/better_size_stuff

Conversation

@ujfalusi
Copy link
Copy Markdown
Contributor

@ujfalusi ujfalusi commented Jun 2, 2026

Fix fcplay to take the buffer and fragments parameter into account (it is ignored currently)
Make the prints about buffer configuration more informative and common between cplay and fcplay
During multiple file playback with fcplay print out the new file when the changeover happens.

ujfalusi added 5 commits June 2, 2026 16:27
fcplay ignores the values set via -b and -f parameters, change the
compress_open_and_prepare() to take these into account similarly as cplay
does.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The number of fragments is useful information of the buffer allocation.
Print it out alongside of the buffer size.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The code only printed out the buffer size which was passed as parameter -
and ironically, it was ignored.
Correct the code to print out the size of the allocated buffer.

The number of fragments is useful information of the buffer allocation.
Print it out alongside of the buffer size.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Add compress_print_playback_info() to centralize playback
configuration logging shared by cplay and fcplay.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Pass file_count and file_idx to compress_print_playback_info()
so multi-file playback can show the current track number in the
log while single-file playback keeps the same output format.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
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.

1 participant