@newgameplusinc/odyssey-audio-video-sdk-dev 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -433,9 +433,9 @@ class SpatialAudioManager extends EventManager_1.EventManager {
|
|
|
433
433
|
}
|
|
434
434
|
getDistanceConfig() {
|
|
435
435
|
return {
|
|
436
|
-
refDistance: this.options.distance?.refDistance ??
|
|
437
|
-
maxDistance: this.options.distance?.maxDistance ??
|
|
438
|
-
rolloffFactor: this.options.distance?.rolloffFactor ??
|
|
436
|
+
refDistance: this.options.distance?.refDistance ?? 0.5, // Normal volume within 0.5m (very close)
|
|
437
|
+
maxDistance: this.options.distance?.maxDistance ?? 5, // Cannot hear after 5 meters
|
|
438
|
+
rolloffFactor: this.options.distance?.rolloffFactor ?? 2.5, // Aggressive falloff for realistic distance attenuation
|
|
439
439
|
unit: this.options.distance?.unit ?? "auto",
|
|
440
440
|
};
|
|
441
441
|
}
|
package/package.json
CHANGED