samples += 2;
}
}
+ else if (vol[0] + vol[1] > 0 && ch->prologic_invert == -1)
+ {
+ for (i = 0;i < count;i++)
+ {
+ paint[i].sample[0] += (samples[0] * vol[0]) >> 8;
+ paint[i].sample[1] -= (samples[1] * vol[1]) >> 8;
+ samples += 2;
+ }
+ }
else if (vol[0] + vol[1] > 0)
{
for (i = 0;i < count;i++)
{
paint[i].sample[0] += (samples[0] * vol[0]) >> 8;
- paint[i].sample[1] += (samples[1] * vol[1] * ch->prologic_invert) >> 8;
+ paint[i].sample[1] += (samples[1] * vol[1]) >> 8;
samples += 2;
}
}
samples += 1;
}
}
+ else if (vol[0] + vol[1] > 0 && ch->prologic_invert == -1)
+ {
+ for (i = 0;i < count;i++)
+ {
+ paint[i].sample[0] += (samples[0] * vol[0]) >> 8;
+ paint[i].sample[1] -= (samples[0] * vol[1]) >> 8;
+ samples += 1;
+ }
+ }
else if (vol[0] + vol[1] > 0)
{
for (i = 0;i < count;i++)
{
paint[i].sample[0] += (samples[0] * vol[0]) >> 8;
- paint[i].sample[1] += (samples[0] * vol[1] * ch->prologic_invert) >> 8;
+ paint[i].sample[1] += (samples[0] * vol[1]) >> 8;
samples += 1;
}
}
samples += 2;
}
}
+ else if (vol[0] + vol[1] > 0 && ch->prologic_invert == -1)
+ {
+ for (i = 0;i < count;i++)
+ {
+ paint[i].sample[0] += (samples[0] * vol[0]) >> 16;
+ paint[i].sample[1] -= (samples[1] * vol[1]) >> 16;
+ samples += 2;
+ }
+ }
else if (vol[0] + vol[1] > 0)
{
for (i = 0;i < count;i++)
{
paint[i].sample[0] += (samples[0] * vol[0]) >> 16;
- paint[i].sample[1] += (samples[1] * vol[1] * ch->prologic_invert) >> 16;
+ paint[i].sample[1] += (samples[1] * vol[1]) >> 16;
samples += 2;
}
}
samples += 1;
}
}
+ else if (vol[0] + vol[1] > 0 && ch->prologic_invert == -1)
+ {
+ for (i = 0;i < count;i++)
+ {
+ paint[i].sample[0] += (samples[0] * vol[0]) >> 16;
+ paint[i].sample[1] -= (samples[0] * vol[1]) >> 16;
+ samples += 1;
+ }
+ }
else if (vol[0] + vol[1] > 0)
{
for (i = 0;i < count;i++)
{
paint[i].sample[0] += (samples[0] * vol[0]) >> 16;
- paint[i].sample[1] += (samples[0] * vol[1] * ch->prologic_invert) >> 16;
+ paint[i].sample[1] += (samples[0] * vol[1]) >> 16;
samples += 1;
}
}