summaryrefslogtreecommitdiff
path: root/libavresample/internal.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-11-29 14:53:04 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-12-11 14:00:32 -0500
commit14758e3211d34a97c42b07acae117ce5627d7f57 (patch)
tree9f502994fb29743424c2789727b468ca7055c0dc /libavresample/internal.h
parent887d4c05c9126d3598d72a19417296253d59752d (diff)
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.
Diffstat (limited to 'libavresample/internal.h')
-rw-r--r--libavresample/internal.h6
1 files changed, 6 insertions, 0 deletions
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 */