mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
parent
39bfc0cb56
commit
bb002a3eef
1 changed files with 21 additions and 0 deletions
|
|
@ -791,6 +791,26 @@ struct data dsp_5p1_remapped = {
|
|||
.size = sizeof(float) * 4
|
||||
};
|
||||
|
||||
struct data dsp_5p1_remapped_from_6p1 = {
|
||||
.mode = SPA_PARAM_PORT_CONFIG_MODE_dsp,
|
||||
.info = SPA_AUDIO_INFO_RAW_INIT(
|
||||
.format = SPA_AUDIO_FORMAT_F32,
|
||||
.rate = 48000,
|
||||
.channels = 6,
|
||||
.position = {
|
||||
SPA_AUDIO_CHANNEL_FL,
|
||||
SPA_AUDIO_CHANNEL_FR,
|
||||
SPA_AUDIO_CHANNEL_RL,
|
||||
SPA_AUDIO_CHANNEL_RR,
|
||||
SPA_AUDIO_CHANNEL_FC,
|
||||
SPA_AUDIO_CHANNEL_LFE,
|
||||
}),
|
||||
.ports = 6,
|
||||
.planes = 1,
|
||||
.data = { data_f32p_1, data_f32p_2, data_f32p_5_6p1, data_f32p_6_6p1, data_f32p_3, data_f32p_4, },
|
||||
.size = sizeof(float) * 4
|
||||
};
|
||||
|
||||
struct data dsp_6p1 = {
|
||||
.mode = SPA_PARAM_PORT_CONFIG_MODE_dsp,
|
||||
.info = SPA_AUDIO_INFO_RAW_INIT(
|
||||
|
|
@ -1104,6 +1124,7 @@ static int test_convert_remap_conv(struct context *ctx)
|
|||
|
||||
run_convert(ctx, &conv_f32_48000_6p1, &dsp_5p1_from_6p1);
|
||||
run_convert(ctx, &conv_f32_48000_6p1_side, &dsp_5p1_from_6p1);
|
||||
run_convert(ctx, &conv_f32_48000_6p1, &dsp_5p1_remapped_from_6p1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue