Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::voicechat::AudioRuntime Class Referencefinal

#include <VoiceChatAudioRuntime.hpp>

Classes

struct  Receiver
 
struct  Settings
 

Public Types

enum class  Codec : std::uint8_t { Pcm , Gsm610 }
 

Public Member Functions

 AudioRuntime (audio::Runtime &audio) noexcept
 
 ~AudioRuntime ()
 
 AudioRuntime (const AudioRuntime &)=delete
 
AudioRuntime & operator= (const AudioRuntime &)=delete
 
std::expected< void, std::string > startCapture (Settings settings={})
 
void stopCapture () noexcept
 
std::expected< void, std::string > pumpCapture (std::uint64_t tick)
 
bool captureActive () const noexcept
 
bool handleEvent (const packet::Event &event, std::uint32_t sourceId)
 
void closeAllReceivers () noexcept
 

Static Public Member Functions

static constexpr bool gsm610Supported () noexcept
 

Detailed Description

Definition at line 19 of file VoiceChatAudioRuntime.hpp.

Member Enumeration Documentation

◆ Codec

enum class monopoly::voicechat::AudioRuntime::Codec : std::uint8_t
strong
Enumerator
Pcm 
Gsm610 

Definition at line 22 of file VoiceChatAudioRuntime.hpp.

Constructor & Destructor Documentation

◆ AudioRuntime() [1/2]

monopoly::voicechat::AudioRuntime::AudioRuntime ( audio::Runtime &  audio)
explicitnoexcept

Definition at line 46 of file VoiceChatAudioRuntime.cpp.

◆ ~AudioRuntime()

monopoly::voicechat::AudioRuntime::~AudioRuntime ( )

Definition at line 51 of file VoiceChatAudioRuntime.cpp.

◆ AudioRuntime() [2/2]

monopoly::voicechat::AudioRuntime::AudioRuntime ( const AudioRuntime &  )
delete

Member Function Documentation

◆ captureActive()

bool monopoly::voicechat::AudioRuntime::captureActive ( ) const
noexcept

Definition at line 140 of file VoiceChatAudioRuntime.cpp.

◆ closeAllReceivers()

void monopoly::voicechat::AudioRuntime::closeAllReceivers ( )
noexcept

Definition at line 491 of file VoiceChatAudioRuntime.cpp.

◆ gsm610Supported()

static constexpr bool monopoly::voicechat::AudioRuntime::gsm610Supported ( )
inlinestaticconstexprnoexcept

Definition at line 57 of file VoiceChatAudioRuntime.hpp.

◆ handleEvent()

bool monopoly::voicechat::AudioRuntime::handleEvent ( const packet::Event &  event,
std::uint32_t  sourceId 
)

Definition at line 452 of file VoiceChatAudioRuntime.cpp.

◆ operator=()

AudioRuntime & monopoly::voicechat::AudioRuntime::operator= ( const AudioRuntime &  )
delete

◆ pumpCapture()

std::expected< void, std::string > monopoly::voicechat::AudioRuntime::pumpCapture ( std::uint64_t  tick)

Definition at line 251 of file VoiceChatAudioRuntime.cpp.

◆ startCapture()

std::expected< void, std::string > monopoly::voicechat::AudioRuntime::startCapture ( Settings  settings = {})

Definition at line 57 of file VoiceChatAudioRuntime.cpp.

◆ stopCapture()

void monopoly::voicechat::AudioRuntime::stopCapture ( )
noexcept

Definition at line 123 of file VoiceChatAudioRuntime.cpp.


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