volume: Use a macro to check if a volume is valid
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 9 Oct 2010 17:00:20 +0000 (22:30 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 14 Oct 2010 19:40:00 +0000 (01:10 +0530)
commit1d2ef7923d28a74e08a4309b6fa3d36481d2df3b
tree50a611811a1408f682ff21500f3f679e429c327a
parent4d84a00b495c44a9e348534bf754ace823c9abe8
volume: Use a macro to check if a volume is valid

This adds a PA_VOLUME_IS_VALID() macro for checking if a given
pa_volume_t is valid. This makes changes to the volume ranges simpler
(just change PA_VOLUME_MAX, for example, without needing to modify any
other code).
src/modules/dbus/iface-core.c
src/modules/dbus/iface-device.c
src/modules/dbus/iface-sample.c
src/modules/dbus/iface-stream.c
src/modules/module-stream-restore.c
src/pulse/scache.c
src/pulse/volume.c
src/pulse/volume.h
src/pulsecore/core-scache.c