ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
session_host_client_t Struct Reference

Keeps the host-side rendering history used to compare successive frames and stabilize output for connected participants. Its buffers and dimensions belong to the host render target and must be reset when the source or terminal geometry changes. More...

Data Fields

participant_type_t participant_type
uint32_t client_id
network_connection_t * connection
char ip_address [IP_ADDRESS_BUFFER_SIZE]
int port
bool active
bool video_active
bool audio_active
uint64_t connected_at
uint16_t render_width
uint16_t render_height
acip_render_settings_t rendering
digital_rain_t * rain
uint64_t next_video_deadline
double rain_time
struct acip_transport * transport
 Transport borrowed from the connection owner or browser bridge.
acip_transport_ownership_t transport_ownership
image_t * incoming_video
 Incoming video frame buffer (for host render thread).
ringbuffer_t * incoming_audio
 Incoming audio ringbuffer (written by receive loop, read by render thread).
opus_codec_t * opus_decoder
opus_codec_t * opus_encoder
float audio_frame [(OPUS_FRAME_SAMPLES *AUDIO_CHANNELS)]

Detailed Description

Keeps the host-side rendering history used to compare successive frames and stabilize output for connected participants. Its buffers and dimensions belong to the host render target and must be reset when the source or terminal geometry changes.

The useful part of session host is in frame_workspace, render_histories, port, max_clients: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path.

Host-owned live record for one connected participant.

It ties the participant ID and network transport to rendering dimensions, media activity, decoded video/audio buffers, codec state, and the next render deadline. The host owns this record and joins/releases its worker resources before freeing it.

Definition at line 88 of file host.c.

Field Documentation

◆ active

bool session_host_client_t::active

Definition at line 94 of file host.c.

Referenced by session_host_render_audio().

◆ audio_active

bool session_host_client_t::audio_active

Definition at line 96 of file host.c.

Referenced by session_host_render_audio().

◆ audio_frame

float session_host_client_t::audio_frame[(OPUS_FRAME_SAMPLES *AUDIO_CHANNELS)]

Definition at line 116 of file host.c.

Referenced by session_host_render_audio().

◆ client_id

uint32_t session_host_client_t::client_id

Definition at line 90 of file host.c.

Referenced by session_host_render_audio().

◆ connected_at

uint64_t session_host_client_t::connected_at

Definition at line 97 of file host.c.

◆ connection

network_connection_t* session_host_client_t::connection

Definition at line 91 of file host.c.

◆ incoming_audio

ringbuffer_t* session_host_client_t::incoming_audio

Incoming audio ringbuffer (written by receive loop, read by render thread).

Definition at line 113 of file host.c.

Referenced by session_host_render_audio().

◆ incoming_video

image_t* session_host_client_t::incoming_video

Incoming video frame buffer (for host render thread).

Definition at line 110 of file host.c.

◆ ip_address

char session_host_client_t::ip_address[IP_ADDRESS_BUFFER_SIZE]

Definition at line 92 of file host.c.

◆ next_video_deadline

uint64_t session_host_client_t::next_video_deadline

Definition at line 102 of file host.c.

◆ opus_decoder

opus_codec_t* session_host_client_t::opus_decoder

Definition at line 114 of file host.c.

◆ opus_encoder

opus_codec_t* session_host_client_t::opus_encoder

Definition at line 115 of file host.c.

Referenced by session_host_render_audio().

◆ participant_type

participant_type_t session_host_client_t::participant_type

Definition at line 89 of file host.c.

◆ port

int session_host_client_t::port

Definition at line 93 of file host.c.

◆ rain

digital_rain_t* session_host_client_t::rain

Definition at line 101 of file host.c.

◆ rain_time

double session_host_client_t::rain_time

Definition at line 103 of file host.c.

◆ render_height

uint16_t session_host_client_t::render_height

Definition at line 99 of file host.c.

Referenced by session_host_receive_packet().

◆ render_width

uint16_t session_host_client_t::render_width

Definition at line 98 of file host.c.

Referenced by session_host_receive_packet().

◆ rendering

acip_render_settings_t session_host_client_t::rendering

Definition at line 100 of file host.c.

Referenced by session_host_receive_packet().

◆ transport

struct acip_transport* session_host_client_t::transport

Transport borrowed from the connection owner or browser bridge.

Definition at line 106 of file host.c.

Referenced by session_host_receive_packet(), and session_host_render_audio().

◆ transport_ownership

acip_transport_ownership_t session_host_client_t::transport_ownership

Definition at line 107 of file host.c.

◆ video_active

bool session_host_client_t::video_active

Definition at line 95 of file host.c.


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