[Help] Use raw microphone input (Unprocessed / Media usage)
- 主要语言
- Rust
- 星标
- 7.9k
- 派生
- 708
- 平均合并
- 3 天 23 小时
- 30 天内合并 PR
- 11
描述
Hello ALVR team! Thank you for the amazing work you’ve done with the project — it’s truly fantastic ❤️
I’m currently trying to bring back a feature that used to work in earlier versions of the client: capturing raw microphone input from the Quest 2, without Android's automatic processing (noise suppression, echo cancellation, AGC, etc).
I am using Linux *ubuntu 22.04 based OS.
In the past, this could easily be achieved in alvr/client_core/src/audio.rs by adding these two lines to the audio input stream builder:
```rs
.set_usage(Usage::Media)
.set_input_preset(InputPreset::Unprocessed)
```
That combination worked perfectly: the microphone signal was clean, unaltered, and loud enough — very useful for use cases like streaming, voice analysis, or recording background sounds.
Additional: Would it be possible to expose a simple software gain multiplier?
Unfortunately, the current nightly builds have a fully rewritten audio.rs, and I’m struggling to figure out where or how to apply this behavior again. I’m not very familiar with Rust, so I'm having trouble adapting the changes myself.
Would it be possible to restore this functionality in the new codebase?
Or at least point me in the right direction for implementing it again?
Thanks so much in advance!
贡献指南
评估
这个 Issue 还没有评估数据。