mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05: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
|
.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 = {
|
struct data dsp_6p1 = {
|
||||||
.mode = SPA_PARAM_PORT_CONFIG_MODE_dsp,
|
.mode = SPA_PARAM_PORT_CONFIG_MODE_dsp,
|
||||||
.info = SPA_AUDIO_INFO_RAW_INIT(
|
.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, &dsp_5p1_from_6p1);
|
||||||
run_convert(ctx, &conv_f32_48000_6p1_side, &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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue