From 31a10f7c38887294af758d21a19596b7772f328a Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Tue, 27 May 2014 08:21:18 +0200 Subject: af_fmt2bits: change to af_fmt2bps (bytes/sample) where appropriate In most places where af_fmt2bits is called to get the bits/sample, the result is immediately converted to bytes/sample. Avoid this by getting bytes/sample directly by introducing af_fmt2bps. --- audio/format.h | 1 + 1 file changed, 1 insertion(+) (limited to 'audio/format.h') diff --git a/audio/format.h b/audio/format.h index 6fcf923624..6821f27ab6 100644 --- a/audio/format.h +++ b/audio/format.h @@ -151,6 +151,7 @@ extern const struct af_fmt_entry af_fmtstr_table[]; int af_str2fmt_short(bstr str); const char *af_fmt_to_str(int format); +int af_fmt2bps(int format); int af_fmt2bits(int format); int af_fmt_change_bits(int format, int bits); -- cgit v1.2.3