QUOTE(_mik @ Oct 31 2006, 02:55)

QUOTE(Omion @ Oct 31 2006, 06:54)

I just finished looking at the scalefactor code and... yup. Impossible.

If scalefactors went in powers of 2 it would be OK, but it looks like they go in powers of 2^0.25, which makes it impossible for just about every case.

, but 2 = (2^0.25)^4, isn't it?
Although you're right, it doesn't quite work, unfortunately.
Here's why:
The only way to mix the two channels would be to change the scalefactors so that they're equal, then combine the scaled samples.
The change in the scalefactor (δ) is always going to be the inverse of the change in the scaled sample in order for them to be equal in the end. real_sample = scalefactor * scaled_sample = (scalefactor / δ) * (scaled_sample * δ)
Since the scaled sample must be an integer, δ must also be an integer, which means it cannot go in small enough steps to make it accurate.
Here's a little example:
Let's say the left channel has scalefactor 2, and the right channel has scalefactor 2^0.5 (1.414..., an irrational number). We need to find integers δL and δR such that:
2 * δL = 2^0.5 * δR
δL and δR will always be integers, so 2 * δL is an integer.
But 2^0.5 is irrational, and an integer times an irrational number is always irrational.
So we have:
{some integer} = {some irrational number}
which will never happen.
Therefore, in order to work, δL and δR cannot be constrained to integers, meaning that the output sample will not be an integer, which it must be in order to be stored.
I hope that made some sense...
QUOTE
You could still do the thing I requested at the beginning, i.e. keep L or R for L/R frames (selected via a cmdline switch), or M for M/S frames. This should sound ok, if a mono source was recorded to both channels (M=L=R=(L+R)/2).
If it's a mono source, it will sound great. For a stereo source it may sound highly odd. But it looks like, in your case at least, this will work.
QUOTE
As I already said, my files are marked as joint stereo, but 100% frames are ss in EncSpot (= L/R, I guess).
mik
Great. Then there will be no problem. I'll get to work on it when I find the time