diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-09-23 17:46:00 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-09-23 17:46:00 +0530 |
commit | 6897217d26066353492b6b906ddbaa58c2dae054 (patch) | |
tree | 87093269fb4320b628d380b9dc7f153367bfd337 /src/modules/echo-cancel/speex.c | |
parent | 83d3c8f22bab997dde81074fd547aef6e56451d5 (diff) |
echo-cancel: Ensure correct handling of endianness
The adrian module was using home-brewed endianness conversion instead of
the appropriate mactos, and speex assumed a little-endian host. This
fixes both of these.
Diffstat (limited to 'src/modules/echo-cancel/speex.c')
-rw-r--r-- | src/modules/echo-cancel/speex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/echo-cancel/speex.c b/src/modules/echo-cancel/speex.c index 4351d238..7851510b 100644 --- a/src/modules/echo-cancel/speex.c +++ b/src/modules/echo-cancel/speex.c @@ -42,7 +42,7 @@ static const char* const valid_modargs[] = { static void pa_speex_ec_fixate_spec(pa_sample_spec *source_ss, pa_channel_map *source_map, pa_sample_spec *sink_ss, pa_channel_map *sink_map) { - source_ss->format = PA_SAMPLE_S16LE; + source_ss->format = PA_SAMPLE_S16NE; *sink_ss = *source_ss; *sink_map = *source_map; |