chore: clean Android voice build warnings
This commit is contained in:
@@ -1284,7 +1284,9 @@ impl ChanoraSession {
|
||||
let guard = self.inner.lock().await;
|
||||
let state = guard.as_ref().ok_or(CoreError::NotConnected)?;
|
||||
let audio = state.audio.as_ref().ok_or(CoreError::AudioNotStarted)?;
|
||||
#[cfg(any(target_os = "ios", target_os = "macos"))]
|
||||
let new_config = config.clone();
|
||||
#[cfg(any(target_os = "ios", target_os = "macos"))]
|
||||
let current = audio.audio_processing_config_snapshot();
|
||||
audio.set_audio_processing_config(config)?;
|
||||
#[cfg(any(target_os = "ios", target_os = "macos"))]
|
||||
|
||||
@@ -139,7 +139,6 @@ struct AndroidCaptureState {
|
||||
opus_out: [u8; crate::opus_voice::MAX_OPUS_FRAME],
|
||||
voice_out_tx: mpsc::Sender<OutPacket>,
|
||||
transmit_active: Arc<AtomicBool>,
|
||||
output_muted: Arc<AtomicBool>,
|
||||
frames_sent: Arc<AtomicU32>,
|
||||
mic_gain: f32,
|
||||
voice_activity_selector: Option<Arc<crate::TransmitModeSelector>>,
|
||||
@@ -166,7 +165,6 @@ impl AndroidCaptureState {
|
||||
fn new(
|
||||
voice_out_tx: mpsc::Sender<OutPacket>,
|
||||
transmit_active: Arc<AtomicBool>,
|
||||
output_muted: Arc<AtomicBool>,
|
||||
frames_sent: Arc<AtomicU32>,
|
||||
mic_gain: f32,
|
||||
voice_activity_selector: Option<Arc<crate::TransmitModeSelector>>,
|
||||
@@ -191,7 +189,6 @@ impl AndroidCaptureState {
|
||||
opus_out: [0u8; crate::opus_voice::MAX_OPUS_FRAME],
|
||||
voice_out_tx,
|
||||
transmit_active,
|
||||
output_muted,
|
||||
frames_sent,
|
||||
mic_gain,
|
||||
voice_activity_selector,
|
||||
@@ -669,7 +666,6 @@ impl AndroidVoiceUnit {
|
||||
AndroidCaptureState::new(
|
||||
params.voice_out_tx,
|
||||
params.transmit_active,
|
||||
params.output_muted.clone(),
|
||||
params.frames_sent,
|
||||
params.mic_gain,
|
||||
params.voice_activity_selector,
|
||||
|
||||
Reference in New Issue
Block a user