mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
echo-cancel: Use webrtc's deinterleaved API
This is required to have unequal channel counts on capture in and out streams, which is needed for beamforming to work. The deinterleaved API only works with floating point samples.
This commit is contained in:
parent
3133ff8e11
commit
07663b06b3
3 changed files with 30 additions and 25 deletions
|
|
@ -2158,12 +2158,12 @@ int main(int argc, char* argv[]) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
source_ss.format = PA_SAMPLE_S16LE;
|
||||
source_ss.format = PA_SAMPLE_FLOAT32LE;
|
||||
source_ss.rate = DEFAULT_RATE;
|
||||
source_ss.channels = DEFAULT_CHANNELS;
|
||||
pa_channel_map_init_auto(&source_map, source_ss.channels, PA_CHANNEL_MAP_DEFAULT);
|
||||
|
||||
sink_ss.format = PA_SAMPLE_S16LE;
|
||||
sink_ss.format = PA_SAMPLE_FLOAT32LE;
|
||||
sink_ss.rate = DEFAULT_RATE;
|
||||
sink_ss.channels = DEFAULT_CHANNELS;
|
||||
pa_channel_map_init_auto(&sink_map, sink_ss.channels, PA_CHANNEL_MAP_DEFAULT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue