summaryrefslogtreecommitdiffstats
path: root/audio/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/format.c')
-rw-r--r--audio/format.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/format.c b/audio/format.c
index 618a00e0c1..08b369c090 100644
--- a/audio/format.c
+++ b/audio/format.c
@@ -45,6 +45,11 @@ int af_fmt2bits(int format)
return af_fmt2bps(format) * 8;
}
+bool af_fmt_is_float(int format)
+{
+ return !!(format & AF_FORMAT_F);
+}
+
static int bits_to_mask(int bits)
{
switch (bits) {