StaticPayloadFormat(3)

πŸ“¦
version 2.0.9 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸŽ€ StaticPayloadFormat β€” NAME

okay so bestie, this is the manual for StaticPayloadFormat(3), and it's all about Static payload format objects. that's the whole vibe. it lives in the Library Functions Manual, and yes we're getting into it πŸ’…


✨ SYNOPSIS ✨

#include <formats.h>

Inherits PayloadFormat. yeah she's a nepo baby, but like, the good kind 🫢

πŸ’– Public Member Functions

  • StaticPayloadFormat (StaticPayloadType type) β€” Constructor. that's it, that's the one you actually call, icon behavior ✨

🌸 Public Member Functions inherited from PayloadFormat

  • PayloadType getPayloadType () const β€” Get payload type numeric identifier carried in RTP packets.
  • uint32 getRTPClockRate () const β€” Get RTP clock rate for this payload format.

πŸ¦‹ Additional Inherited Members

Protected Member Functions inherited from PayloadFormat

  • PayloadFormat () β€” PayloadFormat must not be used but as base class. like, do NOT instantiate her directly bestie, she's a base class and she knows it πŸ’€
  • virtual ~PayloadFormat () β€” PayloadFormat must not be used but as base class. same energy, same rule.
  • void setPayloadType (PayloadType pt) β€” Set payload type numeric identifier carried in RTP packets.
  • void setRTPClockRate (uint32 rate) β€” Set RTP clock rate.

Static Protected Attributes inherited from PayloadFormat

  • static const uint32 defaultRTPClockRate β€” the default clock rate, sitting there being static and protected and mysterious 🌈

πŸ’œ Detailed Description πŸ’œ

Static payload format objects. no cap, that's literally the whole summary.

Class of payload formats objects for payload types statically assigned. Because these payloads have an RTP clock rate assigned, it is not specified to the constructor. like, she already knows her clock rate, she doesn't need you to tell her 😌

A call to StaticPayloadFormat(sptPCMU) will set the proper clock rate and any other parameters for that static payload type. one line, everything handled, main character energy fr fr πŸ‘‘

πŸ‘‘ Author

Federico Montesino Pouzols fedemp@altern.org β€” the legend themselves 🫢

πŸ“ Examples

audiorx.cpp, audiotx.cpp, ccrtptest.cpp, rtpduphello.cpp, rtphello.cpp, rtplisten.cpp, and rtpsend.cpp. go read those if you wanna see her in the wild ✨


🌸 Constructor & Destructor Documentation 🌸

StaticPayloadFormat::StaticPayloadFormat (StaticPayloadType type)

Constructor. Builds a payload format from a static payload binding identifier, assigning the numeric identifier and RTP clock rate statically bounded. so she takes the identifier, and the numbers just come with it πŸŽ€

Parameters

  • type β€” Numeric identifier in the range 0-96.

Note

some identifiers are reserved. so like, don't just throw any old number in there, bestie 🚨

⭐ Author ⭐

Generated automatically by Doxygen for ccRTP from the source code.


and that's the whole page, periodt πŸ’… this was StaticPayloadFormat(3) from the ccRTP Library Functions Manual, auto-generated by Doxygen straight from the source code β€” so if something looks formal, blame the generator, not me 😭 go slay your RTP payloads bestie πŸ¦‹βœ¨

πŸ“¦ where this page comes from