From 4ca06efd11f7b496b20e32d0f85aba7996b5e184 Mon Sep 17 00:00:00 2001 From: Grosskopf Date: Sat, 16 Sep 2017 13:33:58 +0200 Subject: [PATCH] wrote documentation for audio stream player 3D --- doc/classes/AudioStreamPlayer3D.xml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/classes/AudioStreamPlayer3D.xml b/doc/classes/AudioStreamPlayer3D.xml index 668e0cc0d25..3aad0ea87a6 100644 --- a/doc/classes/AudioStreamPlayer3D.xml +++ b/doc/classes/AudioStreamPlayer3D.xml @@ -1,10 +1,13 @@ + Plays 3D sound in 3D space + Plays a sound effect with directed sound effects, dampens with distance if needed, generates effect of hearable position in space. + http://docs.godotengine.org/en/latest/learning/features/audio/index.html @@ -123,6 +126,7 @@ + Plays the audio from the given position 'from_pos', in seconds. @@ -131,6 +135,7 @@ + Sets the position from which audio will be played, in seconds. @@ -265,67 +270,94 @@ + Stops the audio. + Areas in which this sound plays. + Dampens audio above this frequency, in Hz. + Amount how much the filter affects the loudness, in dB. + Decides if audio should get quieter with distance linearly, quadratically or logarithmically. + If [code]true[/code], audio plays audio plays when added to scene tree. Default value: [code]false[/code]. + Bus on which this audio is playing. + Decides in which step the Doppler effect should be calculated. + The angle in which the audio reaches cameras undampened. + If [code]true[/code], the audio should be dampened according to the direction of the sound. + dampens audio if camera is outside of 'emission_angle_degrees' and 'emission_angle_enabled' is set by this factor, in dB. + Sets the absolute maximum of the soundlevel, in dB. + Sets the distance from wich the 'out_of_range_mode' takes effect. Has no effect if set to 0. + Decides if audio should pause when source is outside of 'max_distance' range. + If [code]true[/code], audio is playing. + The [AudioStream] object to be played. + Base sound level unaffected by dampening, in dB. + Factor for the attenuation effect. + Fires when the audio stops playing. + Linear dampening of loudness according to distance. + Squared dampening of loudness according to distance. + Logarithmic dampening of loudness according to distance. + Mix this audio in, even when it's out of range. + Pause this audio when it gets out of range. + Disables doppler tracking. + Executes doppler trackin in idle step. + Executes doppler tracking in fixed step.