class_oggpacketsequence.rst 4.1 KB

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