path: root/audio/format.h
diff options
Diffstat (limited to 'audio/format.h')
1 files changed, 5 insertions, 11 deletions
diff --git a/audio/format.h b/audio/format.h
index 83da59cf61..ea17a44766 100644
--- a/audio/format.h
+++ b/audio/format.h
@@ -54,22 +54,18 @@ enum af_format {
-#define AF_FORMAT_IS_IEC61937(f) af_fmt_is_spdif(f)
-#define AF_FORMAT_IS_SPECIAL(f) af_fmt_is_spdif(f)
-#define AF_FORMAT_IS_FLOAT(f) af_fmt_is_float(f)
-#define AF_FORMAT_IS_PLANAR(f) af_fmt_is_planar(f)
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);
+int af_fmt_to_bytes(int format);
+int af_fmt_change_bytes(int format, int bytes);
-bool af_fmt_unsigned(int format);
+bool af_fmt_is_valid(int format);
+bool af_fmt_is_unsigned(int format);
bool af_fmt_is_float(int format);
bool af_fmt_is_int(int format);
bool af_fmt_is_planar(int format);
bool af_fmt_is_spdif(int format);
+bool af_fmt_is_pcm(int format);
int af_fmt_to_planar(int format);
int af_fmt_from_planar(int format);
@@ -77,8 +73,6 @@ int af_fmt_from_planar(int format);
// Amount of bytes that contain audio of the given duration, aligned to frames.
int af_fmt_seconds_to_bytes(int format, float seconds, int channels, int samplerate);
-bool af_fmt_is_valid(int format);
void af_fill_silence(void *dst, size_t bytes, int format);
int af_format_conversion_score(int dst_format, int src_format);