class_audiostreamplayer3d.rst 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioStreamPlayer3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioStreamPlayer3D:
  6. AudioStreamPlayer3D
  7. ===================
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Plays positional sound in 3D space.
  10. Description
  11. -----------
  12. Plays a sound effect with directed sound effects, dampens with distance if needed, generates effect of hearable position in space. For greater realism, a low-pass filter is automatically applied to distant sounds. This can be disabled by setting :ref:`attenuation_filter_cutoff_hz<class_AudioStreamPlayer3D_property_attenuation_filter_cutoff_hz>` to ``20500``.
  13. By default, audio is heard from the camera position. This can be changed by adding a :ref:`Listener<class_Listener>` node to the scene and enabling it by calling :ref:`Listener.make_current<class_Listener_method_make_current>` on it.
  14. See also :ref:`AudioStreamPlayer<class_AudioStreamPlayer>` to play a sound non-positionally.
  15. **Note:** Hiding an ``AudioStreamPlayer3D`` node does not disable its audio output. To temporarily disable an ``AudioStreamPlayer3D``'s audio output, set :ref:`unit_db<class_AudioStreamPlayer3D_property_unit_db>` to a very low value like ``-100`` (which isn't audible to human hearing).
  16. Tutorials
  17. ---------
  18. - :doc:`../tutorials/audio/audio_streams`
  19. Properties
  20. ----------
  21. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  22. | :ref:`int<class_int>` | :ref:`area_mask<class_AudioStreamPlayer3D_property_area_mask>` | ``1`` |
  23. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  24. | :ref:`float<class_float>` | :ref:`attenuation_filter_cutoff_hz<class_AudioStreamPlayer3D_property_attenuation_filter_cutoff_hz>` | ``5000.0`` |
  25. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  26. | :ref:`float<class_float>` | :ref:`attenuation_filter_db<class_AudioStreamPlayer3D_property_attenuation_filter_db>` | ``-24.0`` |
  27. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  28. | :ref:`AttenuationModel<enum_AudioStreamPlayer3D_AttenuationModel>` | :ref:`attenuation_model<class_AudioStreamPlayer3D_property_attenuation_model>` | ``0`` |
  29. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  30. | :ref:`bool<class_bool>` | :ref:`autoplay<class_AudioStreamPlayer3D_property_autoplay>` | ``false`` |
  31. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  32. | :ref:`String<class_String>` | :ref:`bus<class_AudioStreamPlayer3D_property_bus>` | ``"Master"`` |
  33. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  34. | :ref:`DopplerTracking<enum_AudioStreamPlayer3D_DopplerTracking>` | :ref:`doppler_tracking<class_AudioStreamPlayer3D_property_doppler_tracking>` | ``0`` |
  35. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  36. | :ref:`float<class_float>` | :ref:`emission_angle_degrees<class_AudioStreamPlayer3D_property_emission_angle_degrees>` | ``45.0`` |
  37. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  38. | :ref:`bool<class_bool>` | :ref:`emission_angle_enabled<class_AudioStreamPlayer3D_property_emission_angle_enabled>` | ``false`` |
  39. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  40. | :ref:`float<class_float>` | :ref:`emission_angle_filter_attenuation_db<class_AudioStreamPlayer3D_property_emission_angle_filter_attenuation_db>` | ``-12.0`` |
  41. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  42. | :ref:`float<class_float>` | :ref:`max_db<class_AudioStreamPlayer3D_property_max_db>` | ``3.0`` |
  43. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  44. | :ref:`float<class_float>` | :ref:`max_distance<class_AudioStreamPlayer3D_property_max_distance>` | ``0.0`` |
  45. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  46. | :ref:`OutOfRangeMode<enum_AudioStreamPlayer3D_OutOfRangeMode>` | :ref:`out_of_range_mode<class_AudioStreamPlayer3D_property_out_of_range_mode>` | ``0`` |
  47. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  48. | :ref:`float<class_float>` | :ref:`pitch_scale<class_AudioStreamPlayer3D_property_pitch_scale>` | ``1.0`` |
  49. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  50. | :ref:`bool<class_bool>` | :ref:`playing<class_AudioStreamPlayer3D_property_playing>` | ``false`` |
  51. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  52. | :ref:`AudioStream<class_AudioStream>` | :ref:`stream<class_AudioStreamPlayer3D_property_stream>` | |
  53. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  54. | :ref:`bool<class_bool>` | :ref:`stream_paused<class_AudioStreamPlayer3D_property_stream_paused>` | ``false`` |
  55. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  56. | :ref:`float<class_float>` | :ref:`unit_db<class_AudioStreamPlayer3D_property_unit_db>` | ``0.0`` |
  57. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  58. | :ref:`float<class_float>` | :ref:`unit_size<class_AudioStreamPlayer3D_property_unit_size>` | ``1.0`` |
  59. +--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+--------------+
  60. Methods
  61. -------
  62. +-------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
  63. | :ref:`float<class_float>` | :ref:`get_playback_position<class_AudioStreamPlayer3D_method_get_playback_position>` **(** **)** |
  64. +-------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
  65. | :ref:`AudioStreamPlayback<class_AudioStreamPlayback>` | :ref:`get_stream_playback<class_AudioStreamPlayer3D_method_get_stream_playback>` **(** **)** |
  66. +-------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`play<class_AudioStreamPlayer3D_method_play>` **(** :ref:`float<class_float>` from_position=0.0 **)** |
  68. +-------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`seek<class_AudioStreamPlayer3D_method_seek>` **(** :ref:`float<class_float>` to_position **)** |
  70. +-------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`stop<class_AudioStreamPlayer3D_method_stop>` **(** **)** |
  72. +-------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
  73. Signals
  74. -------
  75. .. _class_AudioStreamPlayer3D_signal_finished:
  76. - **finished** **(** **)**
  77. Emitted when the audio stops playing.
  78. Enumerations
  79. ------------
  80. .. _enum_AudioStreamPlayer3D_AttenuationModel:
  81. .. _class_AudioStreamPlayer3D_constant_ATTENUATION_INVERSE_DISTANCE:
  82. .. _class_AudioStreamPlayer3D_constant_ATTENUATION_INVERSE_SQUARE_DISTANCE:
  83. .. _class_AudioStreamPlayer3D_constant_ATTENUATION_LOGARITHMIC:
  84. .. _class_AudioStreamPlayer3D_constant_ATTENUATION_DISABLED:
  85. enum **AttenuationModel**:
  86. - **ATTENUATION_INVERSE_DISTANCE** = **0** --- Linear dampening of loudness according to distance.
  87. - **ATTENUATION_INVERSE_SQUARE_DISTANCE** = **1** --- Squared dampening of loudness according to distance.
  88. - **ATTENUATION_LOGARITHMIC** = **2** --- Logarithmic dampening of loudness according to distance.
  89. - **ATTENUATION_DISABLED** = **3** --- No dampening of loudness according to distance. The sound will still be heard positionally, unlike an :ref:`AudioStreamPlayer<class_AudioStreamPlayer>`. :ref:`ATTENUATION_DISABLED<class_AudioStreamPlayer3D_constant_ATTENUATION_DISABLED>` can be combined with a :ref:`max_distance<class_AudioStreamPlayer3D_property_max_distance>` value greater than ``0.0`` to achieve linear attenuation clamped to a sphere of a defined size.
  90. ----
  91. .. _enum_AudioStreamPlayer3D_OutOfRangeMode:
  92. .. _class_AudioStreamPlayer3D_constant_OUT_OF_RANGE_MIX:
  93. .. _class_AudioStreamPlayer3D_constant_OUT_OF_RANGE_PAUSE:
  94. enum **OutOfRangeMode**:
  95. - **OUT_OF_RANGE_MIX** = **0** --- Mix this audio in, even when it's out of range. This increases CPU usage, but keeps the sound playing at the correct position if the camera leaves and enters the ``AudioStreamPlayer3D``'s :ref:`max_distance<class_AudioStreamPlayer3D_property_max_distance>` radius.
  96. - **OUT_OF_RANGE_PAUSE** = **1** --- Pause this audio when it gets out of range. This decreases CPU usage, but will cause the sound to restart if the camera leaves and enters the ``AudioStreamPlayer3D``'s :ref:`max_distance<class_AudioStreamPlayer3D_property_max_distance>` radius.
  97. ----
  98. .. _enum_AudioStreamPlayer3D_DopplerTracking:
  99. .. _class_AudioStreamPlayer3D_constant_DOPPLER_TRACKING_DISABLED:
  100. .. _class_AudioStreamPlayer3D_constant_DOPPLER_TRACKING_IDLE_STEP:
  101. .. _class_AudioStreamPlayer3D_constant_DOPPLER_TRACKING_PHYSICS_STEP:
  102. enum **DopplerTracking**:
  103. - **DOPPLER_TRACKING_DISABLED** = **0** --- Disables doppler tracking.
  104. - **DOPPLER_TRACKING_IDLE_STEP** = **1** --- Executes doppler tracking in idle step (every rendered frame).
  105. - **DOPPLER_TRACKING_PHYSICS_STEP** = **2** --- Executes doppler tracking in physics step (every simulated physics frame).
  106. Property Descriptions
  107. ---------------------
  108. .. _class_AudioStreamPlayer3D_property_area_mask:
  109. - :ref:`int<class_int>` **area_mask**
  110. +-----------+----------------------+
  111. | *Default* | ``1`` |
  112. +-----------+----------------------+
  113. | *Setter* | set_area_mask(value) |
  114. +-----------+----------------------+
  115. | *Getter* | get_area_mask() |
  116. +-----------+----------------------+
  117. Determines which :ref:`Area<class_Area>` layers affect the sound for reverb and audio bus effects. Areas can be used to redirect :ref:`AudioStream<class_AudioStream>`\ s so that they play in a certain audio bus. An example of how you might use this is making a "water" area so that sounds played in the water are redirected through an audio bus to make them sound like they are being played underwater.
  118. ----
  119. .. _class_AudioStreamPlayer3D_property_attenuation_filter_cutoff_hz:
  120. - :ref:`float<class_float>` **attenuation_filter_cutoff_hz**
  121. +-----------+-----------------------------------------+
  122. | *Default* | ``5000.0`` |
  123. +-----------+-----------------------------------------+
  124. | *Setter* | set_attenuation_filter_cutoff_hz(value) |
  125. +-----------+-----------------------------------------+
  126. | *Getter* | get_attenuation_filter_cutoff_hz() |
  127. +-----------+-----------------------------------------+
  128. Dampens audio using a low-pass filter above this frequency, in Hz. To disable the dampening effect entirely, set this to ``20500`` as this frequency is above the human hearing limit.
  129. ----
  130. .. _class_AudioStreamPlayer3D_property_attenuation_filter_db:
  131. - :ref:`float<class_float>` **attenuation_filter_db**
  132. +-----------+----------------------------------+
  133. | *Default* | ``-24.0`` |
  134. +-----------+----------------------------------+
  135. | *Setter* | set_attenuation_filter_db(value) |
  136. +-----------+----------------------------------+
  137. | *Getter* | get_attenuation_filter_db() |
  138. +-----------+----------------------------------+
  139. Amount how much the filter affects the loudness, in decibels.
  140. ----
  141. .. _class_AudioStreamPlayer3D_property_attenuation_model:
  142. - :ref:`AttenuationModel<enum_AudioStreamPlayer3D_AttenuationModel>` **attenuation_model**
  143. +-----------+------------------------------+
  144. | *Default* | ``0`` |
  145. +-----------+------------------------------+
  146. | *Setter* | set_attenuation_model(value) |
  147. +-----------+------------------------------+
  148. | *Getter* | get_attenuation_model() |
  149. +-----------+------------------------------+
  150. Decides if audio should get quieter with distance linearly, quadratically, logarithmically, or not be affected by distance, effectively disabling attenuation.
  151. ----
  152. .. _class_AudioStreamPlayer3D_property_autoplay:
  153. - :ref:`bool<class_bool>` **autoplay**
  154. +-----------+-----------------------+
  155. | *Default* | ``false`` |
  156. +-----------+-----------------------+
  157. | *Setter* | set_autoplay(value) |
  158. +-----------+-----------------------+
  159. | *Getter* | is_autoplay_enabled() |
  160. +-----------+-----------------------+
  161. If ``true``, audio plays when the AudioStreamPlayer3D node is added to scene tree.
  162. ----
  163. .. _class_AudioStreamPlayer3D_property_bus:
  164. - :ref:`String<class_String>` **bus**
  165. +-----------+----------------+
  166. | *Default* | ``"Master"`` |
  167. +-----------+----------------+
  168. | *Setter* | set_bus(value) |
  169. +-----------+----------------+
  170. | *Getter* | get_bus() |
  171. +-----------+----------------+
  172. The bus on which this audio is playing.
  173. ----
  174. .. _class_AudioStreamPlayer3D_property_doppler_tracking:
  175. - :ref:`DopplerTracking<enum_AudioStreamPlayer3D_DopplerTracking>` **doppler_tracking**
  176. +-----------+-----------------------------+
  177. | *Default* | ``0`` |
  178. +-----------+-----------------------------+
  179. | *Setter* | set_doppler_tracking(value) |
  180. +-----------+-----------------------------+
  181. | *Getter* | get_doppler_tracking() |
  182. +-----------+-----------------------------+
  183. Decides in which step the `Doppler effect <https://en.wikipedia.org/wiki/Doppler_effect>`__ should be calculated.
  184. **Note:** Only effective if the current :ref:`Camera<class_Camera>`'s :ref:`Camera.doppler_tracking<class_Camera_property_doppler_tracking>` property is set to a value other than :ref:`Camera.DOPPLER_TRACKING_DISABLED<class_Camera_constant_DOPPLER_TRACKING_DISABLED>`.
  185. ----
  186. .. _class_AudioStreamPlayer3D_property_emission_angle_degrees:
  187. - :ref:`float<class_float>` **emission_angle_degrees**
  188. +-----------+---------------------------+
  189. | *Default* | ``45.0`` |
  190. +-----------+---------------------------+
  191. | *Setter* | set_emission_angle(value) |
  192. +-----------+---------------------------+
  193. | *Getter* | get_emission_angle() |
  194. +-----------+---------------------------+
  195. The angle in which the audio reaches cameras undampened.
  196. ----
  197. .. _class_AudioStreamPlayer3D_property_emission_angle_enabled:
  198. - :ref:`bool<class_bool>` **emission_angle_enabled**
  199. +-----------+-----------------------------------+
  200. | *Default* | ``false`` |
  201. +-----------+-----------------------------------+
  202. | *Setter* | set_emission_angle_enabled(value) |
  203. +-----------+-----------------------------------+
  204. | *Getter* | is_emission_angle_enabled() |
  205. +-----------+-----------------------------------+
  206. If ``true``, the audio should be dampened according to the direction of the sound.
  207. ----
  208. .. _class_AudioStreamPlayer3D_property_emission_angle_filter_attenuation_db:
  209. - :ref:`float<class_float>` **emission_angle_filter_attenuation_db**
  210. +-----------+-------------------------------------------------+
  211. | *Default* | ``-12.0`` |
  212. +-----------+-------------------------------------------------+
  213. | *Setter* | set_emission_angle_filter_attenuation_db(value) |
  214. +-----------+-------------------------------------------------+
  215. | *Getter* | get_emission_angle_filter_attenuation_db() |
  216. +-----------+-------------------------------------------------+
  217. Dampens audio if camera is outside of :ref:`emission_angle_degrees<class_AudioStreamPlayer3D_property_emission_angle_degrees>` and :ref:`emission_angle_enabled<class_AudioStreamPlayer3D_property_emission_angle_enabled>` is set by this factor, in decibels.
  218. ----
  219. .. _class_AudioStreamPlayer3D_property_max_db:
  220. - :ref:`float<class_float>` **max_db**
  221. +-----------+-------------------+
  222. | *Default* | ``3.0`` |
  223. +-----------+-------------------+
  224. | *Setter* | set_max_db(value) |
  225. +-----------+-------------------+
  226. | *Getter* | get_max_db() |
  227. +-----------+-------------------+
  228. Sets the absolute maximum of the soundlevel, in decibels.
  229. ----
  230. .. _class_AudioStreamPlayer3D_property_max_distance:
  231. - :ref:`float<class_float>` **max_distance**
  232. +-----------+-------------------------+
  233. | *Default* | ``0.0`` |
  234. +-----------+-------------------------+
  235. | *Setter* | set_max_distance(value) |
  236. +-----------+-------------------------+
  237. | *Getter* | get_max_distance() |
  238. +-----------+-------------------------+
  239. Sets the distance from which the :ref:`out_of_range_mode<class_AudioStreamPlayer3D_property_out_of_range_mode>` takes effect. Has no effect if set to 0.
  240. ----
  241. .. _class_AudioStreamPlayer3D_property_out_of_range_mode:
  242. - :ref:`OutOfRangeMode<enum_AudioStreamPlayer3D_OutOfRangeMode>` **out_of_range_mode**
  243. +-----------+------------------------------+
  244. | *Default* | ``0`` |
  245. +-----------+------------------------------+
  246. | *Setter* | set_out_of_range_mode(value) |
  247. +-----------+------------------------------+
  248. | *Getter* | get_out_of_range_mode() |
  249. +-----------+------------------------------+
  250. Decides if audio should pause when source is outside of :ref:`max_distance<class_AudioStreamPlayer3D_property_max_distance>` range.
  251. ----
  252. .. _class_AudioStreamPlayer3D_property_pitch_scale:
  253. - :ref:`float<class_float>` **pitch_scale**
  254. +-----------+------------------------+
  255. | *Default* | ``1.0`` |
  256. +-----------+------------------------+
  257. | *Setter* | set_pitch_scale(value) |
  258. +-----------+------------------------+
  259. | *Getter* | get_pitch_scale() |
  260. +-----------+------------------------+
  261. The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.
  262. ----
  263. .. _class_AudioStreamPlayer3D_property_playing:
  264. - :ref:`bool<class_bool>` **playing**
  265. +-----------+--------------+
  266. | *Default* | ``false`` |
  267. +-----------+--------------+
  268. | *Getter* | is_playing() |
  269. +-----------+--------------+
  270. If ``true``, audio is playing.
  271. ----
  272. .. _class_AudioStreamPlayer3D_property_stream:
  273. - :ref:`AudioStream<class_AudioStream>` **stream**
  274. +----------+-------------------+
  275. | *Setter* | set_stream(value) |
  276. +----------+-------------------+
  277. | *Getter* | get_stream() |
  278. +----------+-------------------+
  279. The :ref:`AudioStream<class_AudioStream>` resource to be played.
  280. ----
  281. .. _class_AudioStreamPlayer3D_property_stream_paused:
  282. - :ref:`bool<class_bool>` **stream_paused**
  283. +-----------+--------------------------+
  284. | *Default* | ``false`` |
  285. +-----------+--------------------------+
  286. | *Setter* | set_stream_paused(value) |
  287. +-----------+--------------------------+
  288. | *Getter* | get_stream_paused() |
  289. +-----------+--------------------------+
  290. If ``true``, the playback is paused. You can resume it by setting :ref:`stream_paused<class_AudioStreamPlayer3D_property_stream_paused>` to ``false``.
  291. ----
  292. .. _class_AudioStreamPlayer3D_property_unit_db:
  293. - :ref:`float<class_float>` **unit_db**
  294. +-----------+--------------------+
  295. | *Default* | ``0.0`` |
  296. +-----------+--------------------+
  297. | *Setter* | set_unit_db(value) |
  298. +-----------+--------------------+
  299. | *Getter* | get_unit_db() |
  300. +-----------+--------------------+
  301. The base sound level unaffected by dampening, in decibels.
  302. ----
  303. .. _class_AudioStreamPlayer3D_property_unit_size:
  304. - :ref:`float<class_float>` **unit_size**
  305. +-----------+----------------------+
  306. | *Default* | ``1.0`` |
  307. +-----------+----------------------+
  308. | *Setter* | set_unit_size(value) |
  309. +-----------+----------------------+
  310. | *Getter* | get_unit_size() |
  311. +-----------+----------------------+
  312. The factor for the attenuation effect. Higher values make the sound audible over a larger distance.
  313. Method Descriptions
  314. -------------------
  315. .. _class_AudioStreamPlayer3D_method_get_playback_position:
  316. - :ref:`float<class_float>` **get_playback_position** **(** **)**
  317. Returns the position in the :ref:`AudioStream<class_AudioStream>`.
  318. ----
  319. .. _class_AudioStreamPlayer3D_method_get_stream_playback:
  320. - :ref:`AudioStreamPlayback<class_AudioStreamPlayback>` **get_stream_playback** **(** **)**
  321. Returns the :ref:`AudioStreamPlayback<class_AudioStreamPlayback>` object associated with this ``AudioStreamPlayer3D``.
  322. ----
  323. .. _class_AudioStreamPlayer3D_method_play:
  324. - void **play** **(** :ref:`float<class_float>` from_position=0.0 **)**
  325. Plays the audio from the given position ``from_position``, in seconds.
  326. ----
  327. .. _class_AudioStreamPlayer3D_method_seek:
  328. - void **seek** **(** :ref:`float<class_float>` to_position **)**
  329. Sets the position from which audio will be played, in seconds.
  330. ----
  331. .. _class_AudioStreamPlayer3D_method_stop:
  332. - void **stop** **(** **)**
  333. Stops the audio.
  334. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  335. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  336. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`