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

Wrapper class for the opus audio encoder. More...

#include <AudioEncoder.hpp>

Public Member Functions

encoder_return_data encodeData (jsonifier::string_view_base< uint8_t > inputFrame)
 Encode opus audio data. More...
 
 opus_encoder_wrapper ()
 Constructor for opus_encoder_wrapper. initializes and configures the opus encoder.
 

Member Function Documentation

◆ encodeData()

encoder_return_data discord_core_api::discord_core_internal::opus_encoder_wrapper::encodeData ( jsonifier::string_view_base< uint8_t >  inputFrame)
inline
Parameters
inputFramethe audio data to encode.
Returns
encoded data and sample count.
Exceptions
dca_exceptionif encoding fails.

Definition at line 86 of file AudioEncoder.hpp.


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