class_oggpacketsequence.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/ogg/doc_classes/OGGPacketSequence.xml.
  6. .. _class_OGGPacketSequence:
  7. OGGPacketSequence
  8. =================
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A sequence of OGG packets.
  11. Description
  12. -----------
  13. A sequence of OGG packets.
  14. Properties
  15. ----------
  16. +---------------------------+------------------------------------------------------------------------------+---------+
  17. | :ref:`Array<class_Array>` | :ref:`granule_positions<class_OGGPacketSequence_property_granule_positions>` | ``[]`` |
  18. +---------------------------+------------------------------------------------------------------------------+---------+
  19. | :ref:`Array<class_Array>` | :ref:`packet_data<class_OGGPacketSequence_property_packet_data>` | ``[]`` |
  20. +---------------------------+------------------------------------------------------------------------------+---------+
  21. | :ref:`float<class_float>` | :ref:`sampling_rate<class_OGGPacketSequence_property_sampling_rate>` | ``0.0`` |
  22. +---------------------------+------------------------------------------------------------------------------+---------+
  23. Methods
  24. -------
  25. +---------------------------+----------------------------------------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`get_length<class_OGGPacketSequence_method_get_length>` **(** **)** |const| |
  27. +---------------------------+----------------------------------------------------------------------------------+
  28. Property Descriptions
  29. ---------------------
  30. .. _class_OGGPacketSequence_property_granule_positions:
  31. - :ref:`Array<class_Array>` **granule_positions**
  32. +-----------+-------------------------------------+
  33. | *Default* | ``[]`` |
  34. +-----------+-------------------------------------+
  35. | *Setter* | set_packet_granule_positions(value) |
  36. +-----------+-------------------------------------+
  37. | *Getter* | get_packet_granule_positions() |
  38. +-----------+-------------------------------------+
  39. Contains the granule positions for each page in this packet sequence.
  40. ----
  41. .. _class_OGGPacketSequence_property_packet_data:
  42. - :ref:`Array<class_Array>` **packet_data**
  43. +-----------+------------------------+
  44. | *Default* | ``[]`` |
  45. +-----------+------------------------+
  46. | *Setter* | set_packet_data(value) |
  47. +-----------+------------------------+
  48. | *Getter* | get_packet_data() |
  49. +-----------+------------------------+
  50. Contains the raw packets that make up this OGGPacketSequence.
  51. ----
  52. .. _class_OGGPacketSequence_property_sampling_rate:
  53. - :ref:`float<class_float>` **sampling_rate**
  54. +-----------+--------------------------+
  55. | *Default* | ``0.0`` |
  56. +-----------+--------------------------+
  57. | *Setter* | set_sampling_rate(value) |
  58. +-----------+--------------------------+
  59. | *Getter* | get_sampling_rate() |
  60. +-----------+--------------------------+
  61. Holds sample rate information about this sequence. Must be set by another class that actually understands the codec.
  62. Method Descriptions
  63. -------------------
  64. .. _class_OGGPacketSequence_method_get_length:
  65. - :ref:`float<class_float>` **get_length** **(** **)** |const|
  66. The length of this stream, in seconds.
  67. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  68. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  69. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  70. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  71. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  72. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`