feat(voice): harden Android audio and channel joins
This commit is contained in:
@@ -166,21 +166,18 @@ fn main() {
|
||||
"capture_callback_wall_clock" => read_estimate_ns(name),
|
||||
"opus_encode_latency" => read_estimate_ns(name),
|
||||
"opus_decode_latency" => read_estimate_ns(name),
|
||||
"resampler_44100_to_48000" => read_estimate_group_ns(
|
||||
"resampler_throughput",
|
||||
"44100_to_48000",
|
||||
)
|
||||
.map(|ns| ns_to_throughput(ns, 44_100.0)),
|
||||
"resampler_16000_to_48000" => read_estimate_group_ns(
|
||||
"resampler_throughput",
|
||||
"16000_to_48000",
|
||||
)
|
||||
.map(|ns| ns_to_throughput(ns, 16_000.0)),
|
||||
"resampler_48000_passthrough" => read_estimate_group_ns(
|
||||
"resampler_throughput",
|
||||
"48000_passthrough",
|
||||
)
|
||||
.map(|ns| ns_to_throughput(ns, 48_000.0)),
|
||||
"resampler_44100_to_48000" => {
|
||||
read_estimate_group_ns("resampler_throughput", "44100_to_48000")
|
||||
.map(|ns| ns_to_throughput(ns, 44_100.0))
|
||||
}
|
||||
"resampler_16000_to_48000" => {
|
||||
read_estimate_group_ns("resampler_throughput", "16000_to_48000")
|
||||
.map(|ns| ns_to_throughput(ns, 16_000.0))
|
||||
}
|
||||
"resampler_48000_passthrough" => {
|
||||
read_estimate_group_ns("resampler_throughput", "48000_passthrough")
|
||||
.map(|ns| ns_to_throughput(ns, 48_000.0))
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
let v = value.unwrap_or(f64::NAN);
|
||||
@@ -201,7 +198,6 @@ fn main() {
|
||||
});
|
||||
|
||||
let out_path = Path::new("current.json");
|
||||
fs::write(out_path, serde_json::to_string_pretty(&doc).unwrap())
|
||||
.expect("write current.json");
|
||||
fs::write(out_path, serde_json::to_string_pretty(&doc).unwrap()).expect("write current.json");
|
||||
eprintln!("emit_baseline: wrote {}", out_path.display());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user