Pick several audio sources at once, with the apps' own icons
The phone had no way to choose which apps a stream carries: the studio's audio picker added one source and closed, and Android's app list had names only. The picker now marks what is mixed in already (stream.audio_sources) and switches a source on or off with a tap, so several apps (and the microphone, desktop audio, test tones) are picked in one go; Done closes it. Android's launchable apps come with their icons: Kotlin draws each app's icon once per installed version into a 96 px PNG in the cache and hands over its path (AudioApp::icon), which the picker shows. The shared window's audio is not offered on Android, which shares the whole screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1eabbb4704
commit
ecb0e11668
7 files changed
+144
-47
No files matched your search
@@ -73,8 +73,8 @@ pub(crate) fn wire(bridge: &StudioBridge) {
|
||||
bridge.on_list_audio(|| {
|
||||
with_app(|app| app.studio_list_audio());
|
||||
});
|
||||
bridge.on_add_audio(|i| {
|
||||
with_app(|app| app.studio_add_audio(index(i)));
|
||||
bridge.on_toggle_audio(|i| {
|
||||
with_app(|app| app.studio_toggle_audio(index(i)));
|
||||
});
|
||||
bridge.on_set_gain(|i, db, done| {
|
||||
with_app(|app| app.studio_set_gain(index(i), db, done));
|
||||
|
||||
Reference in new issue
Block a user