summaryrefslogtreecommitdiffstats
path: root/audio/format.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-15 08:58:12 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-16 18:20:39 +0200
commitc5ee7740c48805e741b5577e8d5f8c16fe308844 (patch)
tree3698685a305d71319e68fbecf38ee861e74c817d /audio/format.h
parentbff03a181f8c4102a75144f818ea15ea53165170 (diff)
downloadmpv-c5ee7740c48805e741b5577e8d5f8c16fe308844.tar.bz2
mpv-c5ee7740c48805e741b5577e8d5f8c16fe308844.tar.xz
ao_portaudio: use mp_ring
Diffstat (limited to 'audio/format.h')
-rw-r--r--audio/format.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/format.h b/audio/format.h
index bbc7f0fa69..d7b3b34c42 100644
--- a/audio/format.h
+++ b/audio/format.h
@@ -131,8 +131,11 @@ extern const struct af_fmt_entry af_fmtstr_table[];
int af_str2fmt_short(bstr str);
int af_fmt2bits(int format);
-char* af_fmt2str(int format, char* str, int size);
+
+// 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);
+
+char* af_fmt2str(int format, char* str, int size);
const char* af_fmt2str_short(int format);
#endif /* MPLAYER_AF_FORMAT_H */