Libraryless. Click here for Pure Java version (4059L/28K).
svoid dm_pulseAudio_setDefaultSinkAndSwitchAllClients(int sinkIndex) { pulseAudio_setDefaultSink(sinkIndex); for (O program : (Cl) dm_requireAndCall("#1027073/ListPlayingPrograms", 'list)) pulseAudio_moveSinkInput(getInt index(program), sinkIndex); } svoid dm_pulseAudio_setDefaultSinkAndSwitchAllClients(S sinkName) { Int index = reverseLookupIC(dm_systemAudioSinkNames(), sinkName); if (index != null) { print("Switching default sink to: " + sinkName); dm_pulseAudio_setDefaultSinkAndSwitchAllClients(index); } }
Began life as a copy of #1027083
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027085 |
Snippet name: | dm_pulseAudio_setDefaultSinkAndSwitchAllClients |
Eternal ID of this version: | #1027085/3 |
Text MD5: | 3b21bd6ce1c847546b50f0a34dea4636 |
Transpilation MD5: | eee34e711041765cca96f29cd1bc70eb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-23 11:58:26 |
Source code size: | 549 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 214 / 288 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |