浏览代码

Merge pull request #38230 from Calinou/doc-audiostreamplayer-improve-pitch-scale

Improve `pitch_scale` descriptions in AudioStreamPlayer documentation
Rémi Verschelde 5 年之前
父节点
当前提交
7f384e703b
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      doc/classes/AudioStreamPlayer.xml
  2. 1 1
      doc/classes/AudioStreamPlayer2D.xml
  3. 1 1
      doc/classes/AudioStreamPlayer3D.xml

+ 1 - 1
doc/classes/AudioStreamPlayer.xml

@@ -61,7 +61,7 @@
 			If the audio configuration has more than two speakers, this sets the target channels. See [enum MixTarget] constants.
 			If the audio configuration has more than two speakers, this sets the target channels. See [enum MixTarget] constants.
 		</member>
 		</member>
 		<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
 		<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
-			Changes the pitch and the tempo of the audio.
+			The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.
 		</member>
 		</member>
 		<member name="playing" type="bool" setter="_set_playing" getter="is_playing" default="false">
 		<member name="playing" type="bool" setter="_set_playing" getter="is_playing" default="false">
 			If [code]true[/code], audio is playing.
 			If [code]true[/code], audio is playing.

+ 1 - 1
doc/classes/AudioStreamPlayer2D.xml

@@ -67,7 +67,7 @@
 			Maximum distance from which audio is still hearable.
 			Maximum distance from which audio is still hearable.
 		</member>
 		</member>
 		<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
 		<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
-			Changes the pitch and the tempo of the audio.
+			The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.
 		</member>
 		</member>
 		<member name="playing" type="bool" setter="_set_playing" getter="is_playing" default="false">
 		<member name="playing" type="bool" setter="_set_playing" getter="is_playing" default="false">
 			If [code]true[/code], audio is playing.
 			If [code]true[/code], audio is playing.

+ 1 - 1
doc/classes/AudioStreamPlayer3D.xml

@@ -91,7 +91,7 @@
 			Decides if audio should pause when source is outside of [member max_distance] range.
 			Decides if audio should pause when source is outside of [member max_distance] range.
 		</member>
 		</member>
 		<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
 		<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale" default="1.0">
-			Changes the pitch and the tempo of the audio.
+			The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.
 		</member>
 		</member>
 		<member name="playing" type="bool" setter="_set_playing" getter="is_playing" default="false">
 		<member name="playing" type="bool" setter="_set_playing" getter="is_playing" default="false">
 			If [code]true[/code], audio is playing.
 			If [code]true[/code], audio is playing.