sample-utils: split out functions from case
commit26839c4b9eb549eebf8db6eae2399ed6fd94efa8
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 11 Aug 2009 13:15:57 +0000 (11 15:15 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Aug 2009 09:29:47 +0000 (20 11:29 +0200)
treedd43b38a5b0d9e7ceeb94f3f47adce3feb7a10d8
parent52e5d4b1d24db4f4f9ff6e70ddf8c9a6b80cdc6a
sample-utils: split out functions from case

Move the volume functions out of the switch case and use a table indexed by the
sample format to find the volume function.
src/pulsecore/sample-util.c