From 14758e3211d34a97c42b07acae117ce5627d7f57 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Thu, 29 Nov 2012 14:53:04 -0500 Subject: lavr: temporarily store custom matrix in AVAudioResampleContext This allows AudioMix to be treated the same way as other conversion contexts and removes the requirement to allocate it at the same time as the AVAudioResampleContext. The current matrix get/set functions are split between the public interface and AudioMix private functions. --- libavresample/internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavresample/internal.h') diff --git a/libavresample/internal.h b/libavresample/internal.h index 006b6fd14a..3fd33fed6a 100644 --- a/libavresample/internal.h +++ b/libavresample/internal.h @@ -74,6 +74,12 @@ struct AVAudioResampleContext { ResampleContext *resample; /**< resampling context */ AudioMix *am; /**< channel mixing context */ enum AVMatrixEncoding matrix_encoding; /**< matrixed stereo encoding */ + + /** + * mix matrix + * only used if avresample_set_matrix() is called before avresample_open() + */ + double *mix_matrix; }; #endif /* AVRESAMPLE_INTERNAL_H */ -- cgit v1.2.3