mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:36:45 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into perListenerSourcePairMixerData
This commit is contained in:
commit
7fc7eeb0a1
6 changed files with 8 additions and 6 deletions
|
@ -67,7 +67,7 @@
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
"label": "Enable Positional Filter",
|
"label": "Enable Positional Filter",
|
||||||
"help": "If enabled, positional audio stream uses lowpass filter",
|
"help": "If enabled, positional audio stream uses lowpass filter",
|
||||||
"default": true
|
"default": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1110,7 +1110,7 @@ function keyPressEvent(event) {
|
||||||
print("Color = " + (whichColor + 1));
|
print("Color = " + (whichColor + 1));
|
||||||
swatchesSound.play(whichColor);
|
swatchesSound.play(whichColor);
|
||||||
moveTools();
|
moveTools();
|
||||||
} else if (event.text == "0") {
|
} else if (event.text == "0" && voxelToolSelected) {
|
||||||
// Create a brand new 1 meter voxel in front of your avatar
|
// Create a brand new 1 meter voxel in front of your avatar
|
||||||
var newPosition = getNewVoxelPosition();
|
var newPosition = getNewVoxelPosition();
|
||||||
var newVoxel = {
|
var newVoxel = {
|
||||||
|
|
|
@ -75,6 +75,8 @@ public:
|
||||||
- (_b1 * _ym1)
|
- (_b1 * _ym1)
|
||||||
- (_b2 * _ym2);
|
- (_b2 * _ym2);
|
||||||
|
|
||||||
|
y = (y >= -EPSILON && y < EPSILON) ? 0.0f : y; // clamp to 0
|
||||||
|
|
||||||
// update delay line
|
// update delay line
|
||||||
_xm2 = _xm1;
|
_xm2 = _xm1;
|
||||||
_xm1 = x;
|
_xm1 = x;
|
||||||
|
|
|
@ -40,8 +40,8 @@ void AudioSourceTone::updateCoefficients() {
|
||||||
|
|
||||||
void AudioSourceTone::initialize() {
|
void AudioSourceTone::initialize() {
|
||||||
const float32_t FREQUENCY_220_HZ = 220.0f;
|
const float32_t FREQUENCY_220_HZ = 220.0f;
|
||||||
const float32_t GAIN_MINUS_3DB = 0.708f;
|
const float32_t GAIN_MINUS_6DB = 0.501f;
|
||||||
setParameters(SAMPLE_RATE, FREQUENCY_220_HZ, GAIN_MINUS_3DB);
|
setParameters(SAMPLE_RATE, FREQUENCY_220_HZ, GAIN_MINUS_6DB);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioSourceTone::setParameters(const float32_t sampleRate, const float32_t frequency, const float32_t amplitude) {
|
void AudioSourceTone::setParameters(const float32_t sampleRate, const float32_t frequency, const float32_t amplitude) {
|
||||||
|
|
|
@ -203,7 +203,7 @@ void Player::play() {
|
||||||
head->setFinalPitch(eulers.x);
|
head->setFinalPitch(eulers.x);
|
||||||
head->setFinalYaw(eulers.y);
|
head->setFinalYaw(eulers.y);
|
||||||
head->setFinalRoll(eulers.z);
|
head->setFinalRoll(eulers.z);
|
||||||
head->setLookAtPosition(currentFrame.getLookAtPosition());
|
head->setLookAtPosition(context->position + context->orientation * currentFrame.getLookAtPosition());
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "WARNING: Player couldn't find head data.";
|
qDebug() << "WARNING: Player couldn't find head data.";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1769,7 +1769,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
|
||||||
lowestWeight = weights[k];
|
lowestWeight = weights[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (k == 4) {
|
if (k == 4 && weight > lowestWeight) {
|
||||||
// no space for an additional weight; we must replace the lowest
|
// no space for an additional weight; we must replace the lowest
|
||||||
weights[lowestIndex] = weight;
|
weights[lowestIndex] = weight;
|
||||||
extracted.mesh.clusterIndices[it.value()][lowestIndex] = i;
|
extracted.mesh.clusterIndices[it.value()][lowestIndex] = i;
|
||||||
|
|
Loading…
Reference in a new issue