DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::discord_core_internal::ogg_page Class Reference

A class representing an Ogg page for demuxing. More...

#include <Demuxers.hpp>

Public Member Functions

uint64_t getDataSize ()
 Returns the size of the Ogg page data. More...
 
bool getOpusPacket (opus_packet &newPacket)
 Retrieves the next Opus packet from the Ogg page. More...
 
void getSegmentData ()
 Parses the segment data of the Ogg page.
 
 ogg_page (jsonifier::vector< uint8_t > &&newData)
 Constructor for ogg_page. More...
 

Constructor & Destructor Documentation

◆ ogg_page()

discord_core_api::discord_core_internal::ogg_page::ogg_page ( jsonifier::vector< uint8_t > &&  newData)
inline
Parameters
newDataThe data for the Ogg page.

Definition at line 226 of file Demuxers.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ getDataSize()

uint64_t discord_core_api::discord_core_internal::ogg_page::getDataSize ( )
inline
Returns
The size of the Ogg page data.

Definition at line 266 of file Demuxers.hpp.

◆ getOpusPacket()

bool discord_core_api::discord_core_internal::ogg_page::getOpusPacket ( opus_packet &  newPacket)
inline
Parameters
newPacketReference to store the retrieved Opus packet.
Returns
True if an Opus packet was retrieved, false otherwise.

Definition at line 235 of file Demuxers.hpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: