summaryrefslogtreecommitdiffstats
path: root/audio/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/format.h')
-rw-r--r--audio/format.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/format.h b/audio/format.h
index 30a4aa1cea..f3aa3d8af0 100644
--- a/audio/format.h
+++ b/audio/format.h
@@ -131,6 +131,10 @@ extern const struct af_fmt_entry af_fmtstr_table[];
int af_str2fmt_short(bstr str);
int af_fmt2bits(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);
+
char* af_fmt2str(int format, char* str, int size);
const char* af_fmt2str_short(int format);