Jelajahi Sumber

Merge pull request #58104 from Calinou/doc-audio-device

Rémi Verschelde 3 tahun lalu
induk
melakukan
efb179c307
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      doc/classes/AudioServer.xml

+ 3 - 3
doc/classes/AudioServer.xml

@@ -32,7 +32,7 @@
 		<method name="capture_get_device">
 		<method name="capture_get_device">
 			<return type="String" />
 			<return type="String" />
 			<description>
 			<description>
-				Name of the current device for audio input (see [method capture_get_device_list]).
+				Name of the current device for audio input (see [method capture_get_device_list]). The value [code]"Default"[/code] means that the system-wide default audio input is currently used.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="capture_get_device_list">
 		<method name="capture_get_device_list">
@@ -45,7 +45,7 @@
 			<return type="void" />
 			<return type="void" />
 			<argument index="0" name="name" type="String" />
 			<argument index="0" name="name" type="String" />
 			<description>
 			<description>
-				Sets which audio input device is used for audio capture.
+				Sets which audio input device is used for audio capture. On systems with multiple audio inputs (such as analog and USB), this can be used to select the audio input device. Setting the value [code]"Default"[/code] will record audio from the system-wide default audio input. If an invalid device name is set, the value will be reverted back to [code]"Default"[/code].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="generate_bus_layout" qualifiers="const">
 		<method name="generate_bus_layout" qualifiers="const">
@@ -309,7 +309,7 @@
 			Number of available audio buses.
 			Number of available audio buses.
 		</member>
 		</member>
 		<member name="device" type="String" setter="set_device" getter="get_device" default="&quot;Default&quot;">
 		<member name="device" type="String" setter="set_device" getter="get_device" default="&quot;Default&quot;">
-			Name of the current device for audio output (see [method get_device_list]).
+			Name of the current device for audio output (see [method get_device_list]). On systems with multiple audio outputs (such as analog, USB and HDMI audio), this can be used to select the audio output device. The value [code]"Default"[/code] will play audio on the system-wide default audio output. If an invalid device name is set, the value will be reverted back to [code]"Default"[/code].
 		</member>
 		</member>
 		<member name="playback_speed_scale" type="float" setter="set_playback_speed_scale" getter="get_playback_speed_scale" default="1.0">
 		<member name="playback_speed_scale" type="float" setter="set_playback_speed_scale" getter="get_playback_speed_scale" default="1.0">
 			Scales the rate at which audio is played (i.e. setting it to [code]0.5[/code] will make the audio be played at half its speed).
 			Scales the rate at which audio is played (i.e. setting it to [code]0.5[/code] will make the audio be played at half its speed).