Hi
I'm trying to understand Matrix mixing (in delphi).
Can you tell me whether it's accurate?
const
(* In = stereo, Out = stereo. *)
Matrix1 : array[1..2] of array [1..2] of Single =
((1, 0), // left out = left in
(0, 1)); // right out = right in
(* In = stereo, Out = swapped stereo. *)
Matrix2 : array[1..2] of array [1..2] of Single =
((0, 1), // left out = right in
(1, 0)); // right out = left in
(* In = stereo, Out = mono. *)
Matrix3 : array[1..1] of array [1..2] of Single =
((0.5, 0.5)); //mono out = half left + right in
(* In = stereo, Out = quadraphonic (4 channels). *)
Matrix4: array[1..4] of array[1..2] of Single =
((1, 0), // left front out = left in
(0, 1), // right front out = right in
(1, 0), // left rear out = left in
(0, 1)); // right rear out = right in
(* in = Stereo out 5.1 *)
Matrix5: array[1..6] of array[1..2] of Single =
((1, 0), // left front out = left in
(0, 1), // right front out = right in
(1, 0), // left rear out = left in
(0, 1), // right rear out = right in
(1, 0), // Center
(0, 1)); // Sub
(* in = Stereo out 7.1 *)
?
(*
Mixer:= BASS_Mixer_StreamCreate(44100, 6, Mixer_Flag);
BASS_Mixer_StreamAddChannel(mixer, channel, BASS_MIXER_MATRIX);
// add the channel with matrix mixing enabled
BASS_Mixer_ChannelSetMatrix(channel, @matrix5); // apply the matrix
*)