From 2006069ca22c425e7a0b83e01f44f7919884a98c Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Fri, 28 Nov 2014 02:00:17 -0800 Subject: ao/format: add af_fmt_is_float --- audio/format.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'audio/format.c') 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) { -- cgit v1.2.3