mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
audioconvert: implement (de)interleave with existing functions
This commit is contained in:
parent
afd8e8823e
commit
06b1cf8663
6 changed files with 96 additions and 120 deletions
|
|
@ -81,19 +81,19 @@ static void run_test(const char *name,
|
|||
tp[0] = temp_in;
|
||||
switch(in_size) {
|
||||
case 1:
|
||||
conv_interleave_8_c(&conv, tp, ip, N_SAMPLES);
|
||||
conv_8d_to_8_c(&conv, tp, ip, N_SAMPLES);
|
||||
break;
|
||||
case 2:
|
||||
conv_interleave_16_c(&conv, tp, ip, N_SAMPLES);
|
||||
conv_16d_to_16_c(&conv, tp, ip, N_SAMPLES);
|
||||
break;
|
||||
case 3:
|
||||
conv_interleave_24_c(&conv, tp, ip, N_SAMPLES);
|
||||
conv_24d_to_24_c(&conv, tp, ip, N_SAMPLES);
|
||||
break;
|
||||
case 4:
|
||||
conv_interleave_32_c(&conv, tp, ip, N_SAMPLES);
|
||||
conv_32d_to_32_c(&conv, tp, ip, N_SAMPLES);
|
||||
break;
|
||||
case 8:
|
||||
conv_interleave_64_c(&conv, tp, ip, N_SAMPLES);
|
||||
conv_64d_to_64_c(&conv, tp, ip, N_SAMPLES);
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "unknown size %zd\n", in_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue