aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/alsa.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2025-01-28 09:57:57 -0300
committerJames Almer <jamrial@gmail.com>2025-02-01 01:12:17 -0300
commitc6194b50b1b4001db23e8debab4ac4444e794f90 (patch)
tree6c6835c5606021757b306fa8c00ee555a0da7c2c /libavdevice/alsa.h
parent0fe33c99a26a06a6875c4abfb96362a65145264b (diff)
downloadffmpeg-c6194b50b1b4001db23e8debab4ac4444e794f90.tar.gz
avdevice/alsa_dec: add a ch_layout option
Missed in ffc4fd3cc2ccb2cadb71f19849842b18ca1281c6, which after e78173557da898f18a78241cc3525b76694164b5 broke setting channel count. Should fix ticket #11434. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/alsa.h')
-rw-r--r--libavdevice/alsa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/alsa.h b/libavdevice/alsa.h
index 07783c983a..3e1ba31384 100644
--- a/libavdevice/alsa.h
+++ b/libavdevice/alsa.h
@@ -35,6 +35,7 @@
#include "libavutil/log.h"
#include "timefilter.h"
#include "avdevice.h"
+#include "version.h"
/* XXX: we make the assumption that the soundcard accepts this format */
/* XXX: find better solution with "preinit" method, needed also in
@@ -51,7 +52,10 @@ typedef struct AlsaData {
int frame_size; ///< bytes per sample * channels
int period_size; ///< preferred size for reads and writes, in frames
int sample_rate; ///< sample rate set by user
+#if FF_API_ALSA_CHANNELS
int channels; ///< number of channels set by user
+#endif
+ AVChannelLayout ch_layout; ///< Channel layout set by user
int last_period;
TimeFilter *timefilter;
void (*reorder_func)(const void *, void *, int);