]> code.delx.au - pulseaudio/commit
resampler: Refactor calc_map_table()
authorStefan Huber <s.huber@bct-electronic.com>
Thu, 7 Feb 2013 13:03:16 +0000 (14:03 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 7 Feb 2013 14:09:33 +0000 (16:09 +0200)
commit1a40af9c3baf23b963aab0d77234e530cc4cad22
treef6d90416114f7b798a269ccc8c7bacb2439692c7
parent8f009c8680d3f6ac894fd69147b26c6b071b05f7
resampler: Refactor calc_map_table()

- Separate the cases with PA_RESAMPLER_NO_REMAP or PA_RESAMPLER_NO_REMIX
  set and remove redundant if-conditions.
- Fix C90 compiler warning due to mixing code and variable declaration.
- Do not repeatedly count number of left, right and center channels in
  the input channel map.

The logic of calc_map_table() remains unaltered.
src/pulsecore/resampler.c