#[non_exhaustive]pub enum AudioTrackSource {
Adm,
LocalPush,
}Expand description
Where an audio track’s samples come from
(create_audio_track_with_options).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Adm
The factory’s ADM: the platform microphone + speaker (real devices on
desktop) or the shared synthetic pipe fed by
PeerConnectionFactory::push_audio_frame.
Every ADM-sourced track carries the same signal.
There is exactly one ADM per factory — per-track choice is “tap it or bypass it”, not “which ADM”.
On the platform device, the render path is fully automatic: every
inbound audio track decodes to the speaker by default — you cannot
route one remote track to the speaker and another elsewhere through
plumbing. on_frame taps them, it doesn’t divert. Nothing plays
automatically through the synthetic device.
LocalPush
A per-track push source, fully independent of the ADM: feed it with
[Track::push_pcm]. The way to send per-track audio — e.g. a music
track next to the mic — or to route different audio to different
peers from one factory.