This patch prepares support for floating point samples (and probably other formats). It changes the meaning of the "bits" attribute from a bit count to a symbolic value.
These functions are a wrapper for audio_valid_X(). On error, they return a GError object.