group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
VoiceEncoder Class Reference

#include <VoiceCodec.hpp>

Public Member Functions

 VoiceEncoder ()=default
 ~VoiceEncoder ()
 VoiceEncoder (const VoiceEncoder &)=delete
VoiceEncoderoperator= (const VoiceEncoder &)=delete
 VoiceEncoder (VoiceEncoder &&other) noexcept
VoiceEncoderoperator= (VoiceEncoder &&other) noexcept
bool init ()
bool ready () const noexcept
std::vector< std::uint8_t > encode (std::span< const float > monoPcm)
void reset ()

Private Attributes

OpusEncoder * encoder_ = nullptr

Constructor & Destructor Documentation

◆ VoiceEncoder() [1/3]

VoiceEncoder::VoiceEncoder ( )
default
Here is the caller graph for this function:

◆ ~VoiceEncoder()

VoiceEncoder::~VoiceEncoder ( )
Here is the call graph for this function:

◆ VoiceEncoder() [2/3]

VoiceEncoder::VoiceEncoder ( const VoiceEncoder & )
delete
Here is the call graph for this function:

◆ VoiceEncoder() [3/3]

VoiceEncoder::VoiceEncoder ( VoiceEncoder && other)
noexcept
Here is the call graph for this function:

Member Function Documentation

◆ encode()

std::vector< std::uint8_t > VoiceEncoder::encode ( std::span< const float > monoPcm)
nodiscard

◆ init()

bool VoiceEncoder::init ( )
nodiscard
Here is the call graph for this function:

◆ operator=() [1/2]

VoiceEncoder & VoiceEncoder::operator= ( const VoiceEncoder & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

VoiceEncoder & VoiceEncoder::operator= ( VoiceEncoder && other)
noexcept
Here is the call graph for this function:

◆ ready()

bool VoiceEncoder::ready ( ) const
inlinenodiscardnoexcept

◆ reset()

void VoiceEncoder::reset ( )
Here is the caller graph for this function:

Member Data Documentation

◆ encoder_

OpusEncoder* VoiceEncoder::encoder_ = nullptr
private

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