chore(audio,ios): silence cpal-side dead_code on iOS + regen Podfile.lock (rc.8+62)
Two follow-ups after the iOS Rust build went green at5de6ecc: 1. cpal-side framing constants (SAMPLE_RATE / FRAME_SAMPLES / MAX_OPUS_FRAME) are dead code in the current iOS commit because the VPIO callbacks are still no-op stubs and don't reach the constants yet (commits 3 + 4 will). They are genuinely live on every other platform via the cpal capture pipeline. Mark each with #[allow(dead_code)] and add a comment pointing at the commits that will reactivate them on iOS, instead of cfg-gating per-platform (the constants are framing invariants of the engine itself, not per-backend details). 2. ios/Podfile.lock regenerated on the Mac via 'pod install' to register package_info_plus (0.4.5) which landed in97a6ba6. Without this regen the Xcode build fails with 'The sandbox is not in sync with the Podfile.lock' because Xcode's CocoaPods integration check sees a new plugin in pubspec.yaml that has no matching Pod entry. Five pods now in the lockfile: Flutter, audio_session, chanora_bridge, connectivity_plus, package_info_plus. Build counter 61 -> 62 — the About dialog will display v1.0.0-rc.8+62 so the user can confirm the build under test matches this commit (the previous build said +61).
This commit is contained in:
@@ -51,8 +51,18 @@ use crate::AudioError;
|
||||
pub struct SessionAudioId(pub u64);
|
||||
|
||||
/// Audio framing: 48 kHz mono, 20 ms = 960 samples per frame.
|
||||
/// These constants are framing invariants of the engine and are
|
||||
/// referenced from per-platform helpers (`try_open_capture` and
|
||||
/// the CaptureState on cpal platforms; `ios_voice_unit` on iOS once
|
||||
/// commits 3+4 land). The `allow(dead_code)` is here because in
|
||||
/// the current commit the iOS VPIO callbacks are still no-op stubs
|
||||
/// and don't reach these constants yet — they will in commit 3
|
||||
/// when the input callback wires into CaptureState.
|
||||
#[allow(dead_code)]
|
||||
const SAMPLE_RATE: u32 = 48_000;
|
||||
#[allow(dead_code)]
|
||||
const FRAME_SAMPLES: usize = 48_000 / 50; // 960
|
||||
#[allow(dead_code)]
|
||||
const MAX_OPUS_FRAME: usize = 1275;
|
||||
|
||||
/// Engine configuration.
|
||||
|
||||
Reference in New Issue
Block a user