diff options
| author | Juan Linietsky | 2017-07-15 18:40:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-07-15 18:42:06 -0300 |
| commit | 741145febd2b4fc2db4b076a339ded88dfa3c5e5 (patch) | |
| tree | 712399e9f0346e860506f9d704201fac135fd0f4 /scene/3d/audio_stream_player_3d.h | |
| parent | 6422b9d150647ddea8685fc1e9fa2e0afe9e273f (diff) | |
| download | godot-741145febd2b4fc2db4b076a339ded88dfa3c5e5.tar.gz godot-741145febd2b4fc2db4b076a339ded88dfa3c5e5.tar.zst godot-741145febd2b4fc2db4b076a339ded88dfa3c5e5.zip | |
-Fix for multiple reflection probes causing issues.
-Fix for positional sound corruption to avoid making people deaf.
Diffstat (limited to 'scene/3d/audio_stream_player_3d.h')
| -rw-r--r-- | scene/3d/audio_stream_player_3d.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h index 549bf67a2..8603cab5a 100644 --- a/scene/3d/audio_stream_player_3d.h +++ b/scene/3d/audio_stream_player_3d.h @@ -48,7 +48,12 @@ private: AudioFrame reverb_vol[3]; Viewport *viewport; //pointer only used for reference to previous mix - Output() { filter_gain = 0; } + Output() { + filter_gain = 0; + viewport = NULL; + reverb_bus_index = -1; + bus_index = -1; + } }; Output outputs[MAX_OUTPUTS]; |
