perf: reduced memory consumption

This commit is contained in:
Ahmet Kaan Gümüş 2025-06-16 02:11:29 +03:00
parent 8cad7658ea
commit d375c9b564
8 changed files with 67 additions and 983 deletions

View file

@ -7,8 +7,8 @@ use crate::Error;
const SIGNAL_DATA_LENGTH: usize = 4;
pub const NETWORK_DATA_LENGTH: usize = 6;
pub const SPEAKER_ACTION_CHANNEL_LENGTH: usize = 1024;
pub const AUDIO_DATA_SENDER_CHANNEL_LENGTH: usize = 1024 * 16 * 4;
pub const SPEAKER_ACTION_CHANNEL_LENGTH: usize = 128;
pub const AUDIO_DATA_SENDER_CHANNEL_LENGTH: usize = 1024 * 4;
pub const DEFAULT_SAMPLE_RATE: u32 = 44100;
pub type SpeakerWithDataAndAction = (SpeakerWithData, SpeakerAction);