We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3ce63 commit 30e7be1Copy full SHA for 30e7be1
examples/decoding.rs
@@ -29,7 +29,14 @@ fn main() {
29
"samples/sample.webm", // 48kHz,
30
];
31
32
- let latency_hint = match std::env::var("WEB_AUDIO_LATENCY").as_deref() {
+ let latency_hint = match std::env::var("WEB_AUDIO_LATENCY")
33
+ .as_deref()
34
+ .map(str::trim)
35
+ .map(str::to_ascii_lowercase)
36
37
+ {
38
+ Ok("interactive") => AudioContextLatencyCategory::Interactive,
39
+ Ok("balanced") => AudioContextLatencyCategory::Balanced,
40
Ok("playback") => AudioContextLatencyCategory::Playback,
41
_ => AudioContextLatencyCategory::default(),
42
};
0 commit comments