summaryrefslogtreecommitdiffstats
path: root/audio/format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-22 01:01:41 +0200
committerwm4 <wm4@nowhere>2013-10-22 01:01:41 +0200
commit33707c6d6394592f528fb200af2dd6e104fc6df6 (patch)
tree5f9aa685683d8dc952c4a2caf122a972414867fa /audio/format.h
parentbb5fe4d874e2eded092e47812aea0e52ce1fa6cb (diff)
downloadmpv-33707c6d6394592f528fb200af2dd6e104fc6df6.tar.bz2
mpv-33707c6d6394592f528fb200af2dd6e104fc6df6.tar.xz
audio/format: add some helper functions
Diffstat (limited to 'audio/format.h')
-rw-r--r--audio/format.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/format.h b/audio/format.h
index e4173550c6..66eec17cd8 100644
--- a/audio/format.h
+++ b/audio/format.h
@@ -131,6 +131,7 @@ extern const struct af_fmt_entry af_fmtstr_table[];
int af_str2fmt_short(bstr str);
int af_fmt2bits(int format);
+int af_fmt_change_bits(int format, int bits);
// 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);
@@ -138,4 +139,6 @@ int af_fmt_seconds_to_bytes(int format, float seconds, int channels, int sampler
char* af_fmt2str(int format, char* str, int size);
const char* af_fmt2str_short(int format);
+bool af_fmt_is_valid(int format);
+
#endif /* MPLAYER_AF_FORMAT_H */