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

A class for demuxing Matroska-contained audio data. More...

#include <Demuxers.hpp>

Public Member Functions

bool areWeDone ()
 Checks if the demuxing process is complete. More...
 
bool collectFrame (audio_frame_data &frameNew)
 Collects the next frame from the demuxer. More...
 
 matroska_demuxer ()=default
 Constructor for matroska_demuxer.
 
void proceedDemuxing ()
 Proceed with the demuxing process.
 
void writeData (jsonifier::string_view_base< uint8_t > dataNew)
 Writes data to the Matroska demuxer. More...
 

Member Function Documentation

◆ areWeDone()

bool discord_core_api::discord_core_internal::matroska_demuxer::areWeDone ( )
inline
Returns
True if demuxing is complete, false otherwise.

Definition at line 138 of file Demuxers.hpp.

◆ collectElementSize()

int64_t discord_core_api::discord_core_internal::matroska_demuxer::collectElementSize ( )
inlineprotected
Returns
The size of the current element.

Definition at line 184 of file Demuxers.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ collectFrame()

bool discord_core_api::discord_core_internal::matroska_demuxer::collectFrame ( audio_frame_data frameNew)
inline
Parameters
frameNewThe reference to store the collected frame.
Returns
True if a frame was collected, false otherwise.

Definition at line 70 of file Demuxers.hpp.

◆ collectNumber()

int64_t discord_core_api::discord_core_internal::matroska_demuxer::collectNumber ( )
inlineprotected
Returns
The collected number.

Definition at line 193 of file Demuxers.hpp.

Here is the caller graph for this function:

◆ findNextId()

template<typename object_type >
bool discord_core_api::discord_core_internal::matroska_demuxer::findNextId ( object_type  value)
inlineprotected
Template Parameters
object_typeThe type of value to search for.
Parameters
valueThe value to search for.
Returns
True if the value was found, false otherwise.

Definition at line 155 of file Demuxers.hpp.

Here is the caller graph for this function:

◆ reverseBytes()

template<typename object_type >
object_type discord_core_api::discord_core_internal::matroska_demuxer::reverseBytes ( )
inlineprotected
Template Parameters
object_typeThe type of the current element.
Returns
The current element with reversed byte order.

Definition at line 172 of file Demuxers.hpp.

Here is the call graph for this function:

◆ writeData()

void discord_core_api::discord_core_internal::matroska_demuxer::writeData ( jsonifier::string_view_base< uint8_t >  dataNew)
inline
Parameters
dataNewThe data to be written.

Definition at line 63 of file Demuxers.hpp.


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