Skip to content

Commit

Permalink
change default rolloff mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindgamesnl committed Aug 2, 2024
1 parent 9f228fe commit dc4e4e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client/public/nl.lang
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ vc.statusTitle=Mijn status
vc.settings.globalVolumeTitle=Algemeen VoiceChat volume
vc.settings.surround.disable=Surround Uitschakelen
vc.settings.surround.enable=Surround Inschakelen
vc.settings.globalVolumeAbout=Wijzig het hoofdvolume van alle personen in VoiceChat
vc.settings.globalVolumeAbout=Wijzig het hoofdvolume van alle personen in VoiceChat
vc.settings.toggleMenuTitle=VoiceChat-invoerinstellingen
vc.settings.toggleMenu=Toggle Menu
vc.settings.monitoring.title=Microfoon Monitoren
Expand Down Expand Up @@ -147,4 +147,4 @@ settings.interpolation.button=Versoepelen inschakelen

network.serverUnhealthy=De verbinding tussen {serverName} en OpenAudioMc is onstabiel. Sommige functies werken mogelijk niet goed tot dit is opgelost.

tooltip.close=Sluiten
tooltip.close=Sluiten
2 changes: 1 addition & 1 deletion client/src/state/store.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const initialState = {
interpolationEnabled: true,
spatialRenderingMode: 'new',
rolloffFactor: 1,
distanceModel: 'exponential',
distanceModel: 'linear',

preferredMicId: 'default',

Expand Down
7 changes: 1 addition & 6 deletions client/src/views/client/pages/settings/SettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,7 @@ export function applyPannerProperties(pannerNode, maxDistance) {

pannerNode.rolloffFactor = parseFloat(setting);

if (setting <= 0.4) {
// keep old behaviour, where the linear algorithm was forced when RollOff <= 40%
pannerNode.distanceModel = 'linear';
} else {
pannerNode.distanceModel = getGlobalState().settings.distanceModel;
}
pannerNode.distanceModel = getGlobalState().settings.distanceModel;

if (audioRendering === 'new') {
pannerNode.panningModel = 'equalpower';
Expand Down

0 comments on commit dc4e4e8

Please sign in to comment.