diff options
author | Tom Yan <tom.ty89@gmail.com> | 2018-08-21 08:34:23 +0800 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-09-29 23:06:49 +0300 |
commit | 0a92548684370a60e54c572e666b997a2bf9d572 (patch) | |
tree | 5cc57952a54d12907c28fbf4387f73f36ae8c5f4 /audio/format.h | |
parent | 56098c56368fb1c42059a3a125897f4d3e42553b (diff) | |
download | mpv-0a92548684370a60e54c572e666b997a2bf9d572.tar.bz2 mpv-0a92548684370a60e54c572e666b997a2bf9d572.tar.xz |
ao_pulse: fix tlength calculation
also remove the now unused non-sensical af_fmt_seconds_to_bytes.
(cherry picked from commit 9d6b15ab32d4c231574f392c193a53e865b2206d)
Diffstat (limited to 'audio/format.h')
-rw-r--r-- | audio/format.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/audio/format.h b/audio/format.h index 0afc6567c9..24e1c5404f 100644 --- a/audio/format.h +++ b/audio/format.h @@ -64,9 +64,6 @@ bool af_fmt_is_pcm(int format); int af_fmt_to_planar(int format); 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); - void af_fill_silence(void *dst, size_t bytes, int format); void af_get_best_sample_formats(int src_format, int *out_formats); |