feat(audio): add 32-voice PCM mixing and native music sequencing
Add self-contained SoundBanks and MusicBanks with per-sample PCM16 and IMA ADPCM storage, materialized to resident PCM16. Integrate instrument envelopes, automation, shared DSP and host lifecycle controls while preserving staged real-time execution.
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
mod reclamation;
|
||||
pub use reclamation::AudioReclaimer;
|
||||
use reclamation::{CallbackLane, Packet};
|
||||
use reclamation::CallbackLane;
|
||||
#[cfg(test)]
|
||||
use reclamation::Packet;
|
||||
|
||||
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
|
||||
use prometeu_drivers::{AudioCommand, Channel, MAX_CHANNELS, OUTPUT_SAMPLE_RATE};
|
||||
use prometeu_drivers::{AudioDelivery, AudioTransport};
|
||||
use prometeu_drivers::AudioTransport;
|
||||
use prometeu_drivers::OUTPUT_SAMPLE_RATE;
|
||||
pub use prometeu_drivers::engine::AudioMixer;
|
||||
#[cfg(test)]
|
||||
use prometeu_hal::LoopMode;
|
||||
use ringbuf::HeapRb;
|
||||
use ringbuf::traits::{Consumer, Producer, Split};
|
||||
@@ -243,6 +247,9 @@ impl AudioCallback {
|
||||
let (lane, reclaimer) = reclamation::pool();
|
||||
(Self { mixer: AudioMixer::new(), lane }, reclaimer)
|
||||
}
|
||||
pub fn diagnostics(&self) -> prometeu_drivers::engine::AudioDiagnostics {
|
||||
self.mixer.diagnostics
|
||||
}
|
||||
pub fn render(&mut self, transport: &AudioTransport, data: &mut [f32]) {
|
||||
let mut packet = self.lane.take();
|
||||
if let Some(packet) = &mut packet {
|
||||
@@ -380,201 +387,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AudioMixer {
|
||||
voices: [Channel; MAX_CHANNELS],
|
||||
pub last_processing_time: Duration,
|
||||
paused: bool,
|
||||
epoch: u64,
|
||||
}
|
||||
|
||||
impl Default for AudioMixer {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl AudioMixer {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
voices: Default::default(),
|
||||
last_processing_time: Duration::ZERO,
|
||||
paused: false,
|
||||
epoch: 0,
|
||||
}
|
||||
}
|
||||
|
||||
fn apply_delivery_into(&mut self, delivery: AudioDelivery, packet: &mut Packet) {
|
||||
if delivery.epoch < self.epoch {
|
||||
packet.batches = [delivery.frame, delivery.lifecycle];
|
||||
return;
|
||||
}
|
||||
if delivery.epoch != self.epoch {
|
||||
for voice in &mut self.voices {
|
||||
packet.retire(voice.sample.take());
|
||||
*voice = Channel::default();
|
||||
}
|
||||
self.epoch = delivery.epoch;
|
||||
}
|
||||
for (slot, batch) in packet.batches.iter_mut().zip([delivery.frame, delivery.lifecycle]) {
|
||||
*slot = batch;
|
||||
}
|
||||
// Move commands out of slots, keeping each vector allocation in its packet.
|
||||
for index in 0..2 {
|
||||
if let Some(mut batch) = packet.batches[index].take() {
|
||||
for command in &mut batch {
|
||||
let command =
|
||||
std::mem::replace(command, AudioCommand::Stop { voice_id: MAX_CHANNELS });
|
||||
self.process_command(command, packet);
|
||||
}
|
||||
packet.batches[index] = Some(batch);
|
||||
}
|
||||
}
|
||||
self.paused = delivery.paused;
|
||||
}
|
||||
|
||||
fn retire_inactive(&mut self, packet: &mut Packet) {
|
||||
for voice in &mut self.voices {
|
||||
if !voice.active {
|
||||
packet.retire(voice.sample.take());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Signal-only tests use synchronous reclamation outside a data callback.
|
||||
#[cfg(test)]
|
||||
fn apply_delivery(&mut self, delivery: AudioDelivery) {
|
||||
self.apply_delivery_into(delivery, &mut Packet::new());
|
||||
}
|
||||
#[cfg(test)]
|
||||
fn fill_buffer(&mut self, buffer: &mut [f32]) {
|
||||
self.mix(buffer);
|
||||
self.retire_inactive(&mut Packet::new());
|
||||
}
|
||||
|
||||
fn process_command(&mut self, cmd: AudioCommand, packet: &mut Packet) {
|
||||
match cmd {
|
||||
AudioCommand::Play { sample, voice_id, volume, pan, pitch, priority, loop_mode } => {
|
||||
if voice_id < MAX_CHANNELS {
|
||||
packet.retire(self.voices[voice_id].sample.take());
|
||||
self.voices[voice_id] = Channel {
|
||||
sample: Some(sample),
|
||||
active: true,
|
||||
pos: 0.0,
|
||||
pitch,
|
||||
volume,
|
||||
pan,
|
||||
loop_mode,
|
||||
priority,
|
||||
};
|
||||
} else {
|
||||
packet.retire(Some(sample));
|
||||
}
|
||||
}
|
||||
AudioCommand::Stop { voice_id } => {
|
||||
if voice_id < MAX_CHANNELS {
|
||||
self.voices[voice_id].active = false;
|
||||
packet.retire(self.voices[voice_id].sample.take());
|
||||
}
|
||||
}
|
||||
AudioCommand::SetVolume { voice_id, volume } => {
|
||||
if voice_id < MAX_CHANNELS {
|
||||
self.voices[voice_id].volume = volume;
|
||||
}
|
||||
}
|
||||
AudioCommand::SetPan { voice_id, pan } => {
|
||||
if voice_id < MAX_CHANNELS {
|
||||
self.voices[voice_id].pan = pan;
|
||||
}
|
||||
}
|
||||
AudioCommand::SetPitch { voice_id, pitch } => {
|
||||
if voice_id < MAX_CHANNELS {
|
||||
self.voices[voice_id].pitch = pitch;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn mix(&mut self, buffer: &mut [f32]) {
|
||||
let start = std::time::Instant::now();
|
||||
// Zeroes the buffer (stereo)
|
||||
for sample in buffer.iter_mut() {
|
||||
*sample = 0.0;
|
||||
}
|
||||
|
||||
if self.paused {
|
||||
self.last_processing_time = start.elapsed();
|
||||
return;
|
||||
}
|
||||
|
||||
for voice in self.voices.iter_mut() {
|
||||
if !voice.active {
|
||||
continue;
|
||||
}
|
||||
let Some(sample) = voice.sample.as_ref() else {
|
||||
continue;
|
||||
};
|
||||
let len = sample.data.len();
|
||||
if len == 0 {
|
||||
voice.active = false;
|
||||
continue;
|
||||
}
|
||||
let (loop_start, end) = match (voice.loop_mode, sample.loop_start, sample.loop_end) {
|
||||
(LoopMode::On, Some(start), Some(end)) if start < end && end as usize <= len => {
|
||||
(start as f64, end as f64)
|
||||
}
|
||||
_ => (0.0, len as f64),
|
||||
};
|
||||
let ratio = sample.sample_rate as f64 / OUTPUT_SAMPLE_RATE as f64;
|
||||
let volume = voice.volume as f32 / 255.0;
|
||||
let pan = voice.pan as f32 / 255.0;
|
||||
let left = volume * (1.0 - pan).sqrt();
|
||||
let right = volume * pan.sqrt();
|
||||
for frame in buffer.as_chunks_mut::<2>().0 {
|
||||
let pos = voice.pos as usize;
|
||||
if pos >= len {
|
||||
voice.active = false;
|
||||
break;
|
||||
}
|
||||
let s1 = sample.data[pos] as f32 / 32768.0;
|
||||
let next = if voice.loop_mode == LoopMode::On && (pos + 1) as f64 >= end {
|
||||
loop_start as usize
|
||||
} else {
|
||||
pos + 1
|
||||
};
|
||||
let s2 = sample.data.get(next).copied().unwrap_or(0) as f32 / 32768.0;
|
||||
let value = s1 + (s2 - s1) * (voice.pos - pos as f64) as f32;
|
||||
frame[0] += value * left;
|
||||
frame[1] += value * right;
|
||||
if ratio == 0.0 {
|
||||
continue;
|
||||
}
|
||||
if voice.pitch >= (end - voice.pos) / ratio {
|
||||
if voice.loop_mode == LoopMode::Off {
|
||||
voice.active = false;
|
||||
break;
|
||||
}
|
||||
let length = end - loop_start;
|
||||
// Reduce before multiplication: every finite positive pitch,
|
||||
// including f64::MAX, remains finite and wraps multiple loops.
|
||||
let step = (voice.pitch % (length / ratio)) * ratio;
|
||||
voice.pos = loop_start + (voice.pos - loop_start + step).rem_euclid(length);
|
||||
if voice.pos >= end {
|
||||
voice.pos = loop_start;
|
||||
}
|
||||
} else {
|
||||
voice.pos += voice.pitch * ratio;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Final clamp to avoid clipping (optional if using f32, but good for fidelity)
|
||||
for sample in buffer.iter_mut() {
|
||||
*sample = sample.clamp(-1.0, 1.0);
|
||||
}
|
||||
self.last_processing_time = start.elapsed();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod control_tests {
|
||||
use super::*;
|
||||
@@ -622,8 +434,8 @@ mod control_tests {
|
||||
for (frame, value) in pcm.as_chunks::<2>().0.iter().zip(expected) {
|
||||
assert_eq!(*frame, [value as f32 / 32768.0, 0.0]);
|
||||
}
|
||||
assert_eq!(mixer.voices[0].active, looping);
|
||||
assert_eq!(mixer.voices[0].sample.is_some(), looping);
|
||||
assert_eq!(mixer.voices[24].active, looping);
|
||||
assert_eq!(mixer.voices[24].sample.is_some(), looping);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -653,7 +465,7 @@ mod control_tests {
|
||||
let value = if looping || i < 4 { (i % 4 + 1) as f32 / 8.0 } else { 0.0 };
|
||||
assert_eq!(*frame, [value, 0.0], "markers {start:?}/{end:?}, loop {looping}");
|
||||
}
|
||||
assert_eq!(mixer.voices[0].active, looping);
|
||||
assert_eq!(mixer.voices[24].active, looping);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -683,7 +495,7 @@ mod control_tests {
|
||||
assert!((frame[0] - value).abs() <= 1e-6);
|
||||
assert_eq!(frame[1], 0.0);
|
||||
}
|
||||
assert_eq!(mixer.voices[0].active, looping);
|
||||
assert_eq!(mixer.voices[24].active, looping);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -701,8 +513,8 @@ mod control_tests {
|
||||
let mut pcm = [1.0; 8];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0; 8]);
|
||||
assert!(!mixer.voices[0].active);
|
||||
assert!(mixer.voices[0].sample.is_none());
|
||||
assert!(!mixer.voices[24].active);
|
||||
assert!(mixer.voices[24].sample.is_none());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -722,7 +534,7 @@ mod control_tests {
|
||||
let mut pcm = [0.0; 10];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.125, 0.0, 0.25, 0.0, 0.5, 0.0, 0.25, 0.0, 0.5, 0.0]);
|
||||
assert_eq!(mixer.voices[0].pos, 1.0);
|
||||
assert_eq!(mixer.voices[24].pos, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -742,12 +554,12 @@ mod control_tests {
|
||||
let mut pcm = [0.0; 128];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert!(pcm.iter().all(|value| value.is_finite()));
|
||||
assert!(mixer.voices[0].pos.is_finite());
|
||||
assert!(mixer.voices[24].pos.is_finite());
|
||||
if rate == 0 {
|
||||
assert_eq!(mixer.voices[0].pos, 0.0);
|
||||
assert_eq!(mixer.voices[24].pos, 0.0);
|
||||
assert!(pcm.as_chunks::<2>().0.iter().all(|frame| *frame == [0.125, 0.0]));
|
||||
} else if looping {
|
||||
assert!((1.0..3.0).contains(&mixer.voices[0].pos));
|
||||
assert!((1.0..3.0).contains(&mixer.voices[24].pos));
|
||||
assert!(
|
||||
pcm.as_chunks::<2>()
|
||||
.0
|
||||
@@ -759,7 +571,7 @@ mod control_tests {
|
||||
assert_eq!(&pcm[..2], &[0.125, 0.0]);
|
||||
assert!(pcm[2..].iter().all(|value| *value == 0.0));
|
||||
}
|
||||
assert_eq!(mixer.voices[0].active, looping || rate == 0);
|
||||
assert_eq!(mixer.voices[24].active, looping || rate == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -773,29 +585,29 @@ mod control_tests {
|
||||
let mut pcm = [0.0; 4];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.5, 0.0, 0.5, 0.0]);
|
||||
assert_eq!(mixer.voices[0].pos, 2.0);
|
||||
assert_eq!(mixer.voices[24].pos, 2.0);
|
||||
audio.set_pan(0, 255);
|
||||
audio.set_volume(0, 51);
|
||||
audio.set_pitch(0, 2.0);
|
||||
audio.finish_frame();
|
||||
apply(&audio, &mut mixer);
|
||||
assert_eq!(mixer.voices[0].pos, 2.0);
|
||||
assert_eq!(mixer.voices[24].pos, 2.0);
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0, 0.1, 0.0, 0.1]);
|
||||
assert_eq!(mixer.voices[0].pos, 6.0);
|
||||
assert_eq!(mixer.voices[24].pos, 6.0);
|
||||
audio.set_volume(0, 0);
|
||||
audio.finish_frame();
|
||||
apply(&audio, &mut mixer);
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0; 4]);
|
||||
assert_eq!(mixer.voices[0].pos, 10.0);
|
||||
assert_eq!(mixer.voices[24].pos, 10.0);
|
||||
audio.stop(0);
|
||||
audio.stop(0);
|
||||
audio.finish_frame();
|
||||
apply(&audio, &mut mixer);
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0; 4]);
|
||||
assert!(mixer.voices[0].sample.is_none());
|
||||
assert!(mixer.voices[24].sample.is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -811,7 +623,7 @@ mod control_tests {
|
||||
let mut pcm = [0.0; 2];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.25, 0.0]);
|
||||
assert_eq!(mixer.voices[0].pos, 1.0);
|
||||
assert_eq!(mixer.voices[24].pos, 1.0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -825,7 +637,7 @@ mod control_tests {
|
||||
let mut pcm = [1.0; 4];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0; 4]);
|
||||
assert_eq!(mixer.voices[0].pos, 0.0);
|
||||
assert_eq!(mixer.voices[24].pos, 0.0);
|
||||
audio.begin_lifecycle();
|
||||
audio.set_pan(0, 255);
|
||||
audio.finish_lifecycle(true);
|
||||
@@ -833,7 +645,7 @@ mod control_tests {
|
||||
apply(&audio, &mut mixer);
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0, 0.5, 0.0, 0.5]);
|
||||
assert_eq!(mixer.voices[0].pos, 2.0);
|
||||
assert_eq!(mixer.voices[24].pos, 2.0);
|
||||
play(&mut audio, Arc::new(Sample::new(48_000, vec![16384; 16])), 1.0, true);
|
||||
audio.finish_frame();
|
||||
let stale = audio.transport().try_take().unwrap();
|
||||
@@ -854,7 +666,7 @@ mod control_tests {
|
||||
audio.stop(0);
|
||||
audio.finish_lifecycle(true);
|
||||
apply(&audio, &mut mixer);
|
||||
assert!(mixer.voices[0].sample.is_none());
|
||||
assert!(mixer.voices[24].sample.is_none());
|
||||
audio.begin_lifecycle();
|
||||
audio.finish_lifecycle(true);
|
||||
audio.set_paused(false);
|
||||
@@ -866,7 +678,7 @@ mod control_tests {
|
||||
apply(&audio, &mut mixer);
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm, [0.0; 16]);
|
||||
assert!(mixer.voices[0].sample.is_none());
|
||||
assert!(mixer.voices[24].sample.is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -885,8 +697,8 @@ mod control_tests {
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert!(pcm.iter().all(|v| v.is_finite()));
|
||||
assert!(pcm.as_chunks::<2>().0.iter().all(|frame| *frame == [0.5, 0.0]));
|
||||
assert!(mixer.voices[0].active);
|
||||
assert!(mixer.voices[0].pos >= 1.0 && mixer.voices[0].pos < 3.0);
|
||||
assert!(mixer.voices[24].active);
|
||||
assert!(mixer.voices[24].pos >= 1.0 && mixer.voices[24].pos < 3.0);
|
||||
}
|
||||
let (mut audio, mut mixer) = pair();
|
||||
let sample = Arc::new(Sample::new(48_000, vec![16384]));
|
||||
@@ -899,7 +711,7 @@ mod control_tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unloading_bank_keeps_playback_until_stop() {
|
||||
fn unloading_bank_stops_playback_and_rejects_stale_play() {
|
||||
use prometeu_drivers::SoundBankPoolInstaller;
|
||||
use prometeu_hal::sound_bank::SoundBank;
|
||||
let banks = Arc::new(MemoryBanks::new());
|
||||
@@ -914,8 +726,8 @@ mod control_tests {
|
||||
apply(&audio, &mut mixer);
|
||||
let mut pcm = [0.0; 8];
|
||||
mixer.fill_buffer(&mut pcm);
|
||||
assert_eq!(pcm[0], 0.5);
|
||||
assert!(weak.upgrade().is_some());
|
||||
assert_eq!(pcm[0], 0.0);
|
||||
assert!(weak.upgrade().is_none());
|
||||
assert_eq!(audio.play(0, 0, 0, 255, 0, 1.0, 0, LoopMode::On), AudioOpStatus::BankInvalid);
|
||||
audio.stop(0);
|
||||
audio.finish_frame();
|
||||
|
||||
@@ -1,40 +1,16 @@
|
||||
//! Two packets circulate free -> callback -> returned -> service -> free.
|
||||
//! While the callback owns a packet, at most one packet can occupy the return
|
||||
//! lane, so its capacity-two enqueue cannot fail. Neither lane grows.
|
||||
use prometeu_drivers::{AudioCommand, AudioTransport, MAX_CHANNELS, MAX_COMMANDS_PER_FRAME};
|
||||
use prometeu_hal::sample::Sample;
|
||||
use prometeu_drivers::AudioTransport;
|
||||
pub(super) use prometeu_drivers::engine::Packet;
|
||||
#[cfg(test)]
|
||||
use prometeu_drivers::engine::RETIRED_CAPACITY;
|
||||
use ringbuf::{
|
||||
HeapRb,
|
||||
traits::{Consumer, Producer, Split},
|
||||
wrap::{CachingCons, CachingProd},
|
||||
};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub(super) const RETIRED_CAPACITY: usize = 3 * MAX_COMMANDS_PER_FRAME + MAX_CHANNELS;
|
||||
pub(super) struct Packet {
|
||||
retired: Vec<Arc<Sample>>,
|
||||
pub batches: [Option<Vec<AudioCommand>>; 2],
|
||||
}
|
||||
impl Packet {
|
||||
pub(super) fn new() -> Self {
|
||||
Self { retired: Vec::with_capacity(RETIRED_CAPACITY), batches: [None, None] }
|
||||
}
|
||||
pub(super) fn retire(&mut self, sample: Option<Arc<Sample>>) {
|
||||
if let Some(sample) = sample {
|
||||
// Every owner comes from at most 3072 Play commands or 16 slots.
|
||||
assert!(self.retired.len() < RETIRED_CAPACITY, "audio retirement bound");
|
||||
self.retired.push(sample);
|
||||
}
|
||||
}
|
||||
fn recycle(&mut self, transport: &AudioTransport) {
|
||||
self.retired.clear();
|
||||
for batch in &mut self.batches {
|
||||
if let Some(batch) = batch.take() {
|
||||
transport.recycle_commands(batch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
type Prod = CachingProd<Arc<HeapRb<Packet>>>;
|
||||
type Cons = CachingCons<Arc<HeapRb<Packet>>>;
|
||||
pub(super) struct CallbackLane {
|
||||
@@ -43,6 +19,7 @@ pub(super) struct CallbackLane {
|
||||
}
|
||||
/// Main-thread endpoint. Service independently of guest progress or pause.
|
||||
pub struct AudioReclaimer {
|
||||
pub maximum_retired_pcm_bytes: usize,
|
||||
free: Prod,
|
||||
returned: Cons,
|
||||
}
|
||||
@@ -52,7 +29,10 @@ pub(super) fn pool() -> (CallbackLane, AudioReclaimer) {
|
||||
for _ in 0..2 {
|
||||
assert!(free.try_push(Packet::new()).is_ok());
|
||||
}
|
||||
(CallbackLane { free: free_cons, returned }, AudioReclaimer { free, returned: returned_cons })
|
||||
(
|
||||
CallbackLane { free: free_cons, returned },
|
||||
AudioReclaimer { free, returned: returned_cons, maximum_retired_pcm_bytes: 0 },
|
||||
)
|
||||
}
|
||||
impl CallbackLane {
|
||||
pub(super) fn take(&mut self) -> Option<Packet> {
|
||||
@@ -66,6 +46,8 @@ impl CallbackLane {
|
||||
impl AudioReclaimer {
|
||||
pub fn service(&mut self, transport: &AudioTransport) {
|
||||
while let Some(mut packet) = self.returned.try_pop() {
|
||||
self.maximum_retired_pcm_bytes =
|
||||
self.maximum_retired_pcm_bytes.max(packet.retained_pcm_bytes());
|
||||
packet.recycle(transport);
|
||||
assert!(self.free.try_push(packet).is_ok(), "audio packet conservation");
|
||||
}
|
||||
@@ -89,8 +71,8 @@ mod tests {
|
||||
service.service(&transport);
|
||||
for _ in 0..2 {
|
||||
let packet = callback.take().unwrap();
|
||||
assert_eq!(packet.retired.capacity(), RETIRED_CAPACITY);
|
||||
assert!(packet.retired.is_empty());
|
||||
assert_eq!(packet.capacity(), RETIRED_CAPACITY);
|
||||
assert!(packet.is_empty());
|
||||
assert!(packet.batches.iter().all(Option::is_none));
|
||||
callback.give_back(packet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user