Add pa_sample_rate_valid()
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 4 Dec 2013 07:50:10 +0000 (09:50 +0200)
committerPeter Meerwald <pmeerw@pmeerw.net>
Sun, 15 Dec 2013 10:21:56 +0000 (11:21 +0100)
commita67318f8affc4973507811946708bc17e63f1ec7
tree197125b1e11f01d42d6cb8e3654b17149b5bce03
parent1cda71725240bd4911f0f34c5d384b3966f06369
Add pa_sample_rate_valid()

I think this makes the code a bit nicer to read and write. This also
reduces the chances of off-by-one errors when checking the bounds of
sample rate values.
12 files changed:
src/daemon/daemon-conf.c
src/map-file
src/modules/alsa/alsa-ucm.c
src/modules/dbus/iface-core.c
src/pulse/sample.c
src/pulse/sample.h
src/pulse/stream.c
src/pulsecore/modargs.c
src/pulsecore/protocol-native.c
src/pulsecore/resampler.c
src/pulsecore/sink.c
src/pulsecore/source.c