mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 10:40:21 +00:00
aplay/pipewire: Log format on param change
This commit is contained in:
@@ -209,6 +209,11 @@ static void on_param_changed(void *state, uint32_t id, const struct spa_pod *par
|
||||
|
||||
spa_format_audio_raw_parse(param, &audio_params.info.raw);
|
||||
|
||||
log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Pipewire format change: %s, %u ch, %uHz\n",
|
||||
spa_debug_type_find_short_name(spa_type_audio_format, audio_params.info.raw.format),
|
||||
audio_params.info.raw.channels,
|
||||
audio_params.info.raw.rate);
|
||||
|
||||
assert(audio_params.info.raw.rate == (unsigned) s->desc.sample_rate);
|
||||
assert(audio_params.info.raw.channels == (unsigned) s->desc.ch_count);
|
||||
assert(audio_params.info.raw.format == get_pw_format_from_bps(s->desc.bps));
|
||||
|
||||
Reference in New Issue
Block a user