summaryrefslogtreecommitdiffstats
path: root/audio/format.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-03-16 23:37:46 -0700
committerKevin Mitchell <kevmitch@gmail.com>2016-03-17 02:31:05 -0700
commita0884c82a91a3688bd0f448ad4502796782db7bb (patch)
treeb017e702049068c5417dcd56e08e37f5ca10972b /audio/format.h
parenta993cdc48156e0bcf10d90880d77a35ac0b9feaa (diff)
downloadmpv-a0884c82a91a3688bd0f448ad4502796782db7bb.tar.bz2
mpv-a0884c82a91a3688bd0f448ad4502796782db7bb.tar.xz
audio: add af_select_best_samplerate function
This function chooses the best match to a given samplerate from a provided list. This can be used, for example, by the ao to decide what samplerate to use for output.
Diffstat (limited to 'audio/format.h')
-rw-r--r--audio/format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/format.h b/audio/format.h
index de1ff1a30d..3d5cc1024b 100644
--- a/audio/format.h
+++ b/audio/format.h
@@ -76,6 +76,7 @@ int af_fmt_seconds_to_bytes(int format, float seconds, int channels, int sampler
void af_fill_silence(void *dst, size_t bytes, int format);
void af_get_best_sample_formats(int src_format, int out_formats[AF_FORMAT_COUNT]);
+int af_select_best_samplerate(int src_sampelrate, const int *available);
int af_format_sample_alignment(int format);