|
@@ -18,55 +18,55 @@ Base class for audio stream playback.
|
|
|
Member Functions
|
|
|
----------------
|
|
|
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_stream<class_StreamPlayer_set_stream>` **(** Stream stream **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| Stream | :ref:`get_stream<class_StreamPlayer_get_stream>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`play<class_StreamPlayer_play>` **(** :ref:`float<class_float>` offset=0 **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`stop<class_StreamPlayer_stop>` **(** **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_playing<class_StreamPlayer_is_playing>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_paused<class_StreamPlayer_set_paused>` **(** :ref:`bool<class_bool>` paused **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_paused<class_StreamPlayer_is_paused>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_loop<class_StreamPlayer_set_loop>` **(** :ref:`bool<class_bool>` enabled **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_loop<class_StreamPlayer_has_loop>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_volume<class_StreamPlayer_set_volume>` **(** :ref:`float<class_float>` volume **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_volume<class_StreamPlayer_get_volume>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_volume_db<class_StreamPlayer_set_volume_db>` **(** :ref:`float<class_float>` db **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_volume_db<class_StreamPlayer_get_volume_db>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_buffering_msec<class_StreamPlayer_set_buffering_msec>` **(** :ref:`int<class_int>` msec **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_buffering_msec<class_StreamPlayer_get_buffering_msec>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_loop_restart_time<class_StreamPlayer_set_loop_restart_time>` **(** :ref:`float<class_float>` secs **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_loop_restart_time<class_StreamPlayer_get_loop_restart_time>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`String<class_string>` | :ref:`get_stream_name<class_StreamPlayer_get_stream_name>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_loop_count<class_StreamPlayer_get_loop_count>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_pos<class_StreamPlayer_get_pos>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`seek_pos<class_StreamPlayer_seek_pos>` **(** :ref:`float<class_float>` time **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_autoplay<class_StreamPlayer_set_autoplay>` **(** :ref:`bool<class_bool>` enabled **)** |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_autoplay<class_StreamPlayer_has_autoplay>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_length<class_StreamPlayer_get_length>` **(** **)** const |
|
|
|
-+------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_stream<class_StreamPlayer_set_stream>` **(** :ref:`AudioStream<class_audiostream>` stream **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`AudioStream<class_audiostream>` | :ref:`get_stream<class_StreamPlayer_get_stream>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`play<class_StreamPlayer_play>` **(** :ref:`float<class_float>` offset=0 **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`stop<class_StreamPlayer_stop>` **(** **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_playing<class_StreamPlayer_is_playing>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_paused<class_StreamPlayer_set_paused>` **(** :ref:`bool<class_bool>` paused **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_paused<class_StreamPlayer_is_paused>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_loop<class_StreamPlayer_set_loop>` **(** :ref:`bool<class_bool>` enabled **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_loop<class_StreamPlayer_has_loop>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_volume<class_StreamPlayer_set_volume>` **(** :ref:`float<class_float>` volume **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_volume<class_StreamPlayer_get_volume>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_volume_db<class_StreamPlayer_set_volume_db>` **(** :ref:`float<class_float>` db **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_volume_db<class_StreamPlayer_get_volume_db>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_buffering_msec<class_StreamPlayer_set_buffering_msec>` **(** :ref:`int<class_int>` msec **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_buffering_msec<class_StreamPlayer_get_buffering_msec>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_loop_restart_time<class_StreamPlayer_set_loop_restart_time>` **(** :ref:`float<class_float>` secs **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_loop_restart_time<class_StreamPlayer_get_loop_restart_time>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`String<class_string>` | :ref:`get_stream_name<class_StreamPlayer_get_stream_name>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_loop_count<class_StreamPlayer_get_loop_count>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_pos<class_StreamPlayer_get_pos>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`seek_pos<class_StreamPlayer_seek_pos>` **(** :ref:`float<class_float>` time **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_autoplay<class_StreamPlayer_set_autoplay>` **(** :ref:`bool<class_bool>` enabled **)** |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_autoplay<class_StreamPlayer_has_autoplay>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_length<class_StreamPlayer_get_length>` **(** **)** const |
|
|
|
++----------------------------------------+---------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
Signals
|
|
|
-------
|
|
@@ -83,13 +83,13 @@ Member Function Description
|
|
|
|
|
|
.. _class_StreamPlayer_set_stream:
|
|
|
|
|
|
-- void **set_stream** **(** Stream stream **)**
|
|
|
+- void **set_stream** **(** :ref:`AudioStream<class_audiostream>` stream **)**
|
|
|
|
|
|
Set the :ref:`EventStream<class_eventstream>` this player will play.
|
|
|
|
|
|
.. _class_StreamPlayer_get_stream:
|
|
|
|
|
|
-- Stream **get_stream** **(** **)** const
|
|
|
+- :ref:`AudioStream<class_audiostream>` **get_stream** **(** **)** const
|
|
|
|
|
|
Return the currently assigned stream.
|
|
|
|