mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
Sync classref with current source
Changes order of brief/long descriptions and removes category as per godotengine/godot#35132.
This commit is contained in:
@@ -11,13 +11,18 @@ AudioStreamPlayer2D
|
||||
|
||||
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
Plays audio in 2D.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
Plays audio that dampens with distance from screen center.
|
||||
|
||||
Tutorials
|
||||
---------
|
||||
|
||||
- :doc:`../tutorials/audio/audio_streams`
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
@@ -67,16 +72,6 @@ Signals
|
||||
|
||||
Emitted when the audio stops playing.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
Plays audio that dampens with distance from screen center.
|
||||
|
||||
Tutorials
|
||||
---------
|
||||
|
||||
- :doc:`../tutorials/audio/audio_streams`
|
||||
|
||||
Property Descriptions
|
||||
---------------------
|
||||
|
||||
@@ -216,6 +211,8 @@ The :ref:`AudioStream<class_AudioStream>` object to be played.
|
||||
| *Getter* | get_stream_paused() |
|
||||
+-----------+--------------------------+
|
||||
|
||||
If ``true``, the playback is paused. You can resume it by setting ``stream_paused`` to ``false``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_AudioStreamPlayer2D_property_volume_db:
|
||||
@@ -247,6 +244,8 @@ Returns the position in the :ref:`AudioStream<class_AudioStream>`.
|
||||
|
||||
- :ref:`AudioStreamPlayback<class_AudioStreamPlayback>` **get_stream_playback** **(** **)**
|
||||
|
||||
Returns the :ref:`AudioStreamPlayback<class_AudioStreamPlayback>` object associated with this ``AudioStreamPlayer2D``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_AudioStreamPlayer2D_method_play:
|
||||
|
||||
Reference in New Issue
Block a user