Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1027083 // dm_pulseAudio_setDefaultSourceAndSwitchAllClients

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3901L/27K).

1  
svoid dm_pulseAudio_setDefaultSourceAndSwitchAllClients(int sourceIndex) {
2  
  pulseAudio_setDefaultSource(sourceIndex);
3  
  for (O program : (Cl) dm_requireAndCall("#1020410/ListRecordingPrograms", 'list))
4  
    if (!eqic(getString applicationName(program), "PulseAudio Volume Control"))
5  
      pulseAudio_moveSourceOutput(getInt index(program), sourceIndex);
6  
}

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: #1027083
Snippet name: dm_pulseAudio_setDefaultSourceAndSwitchAllClients
Eternal ID of this version: #1027083/4
Text MD5: a5fca2f90662397bfa7006faf5b76254
Transpilation MD5: ce58abda865076b77b37a6d336c067e3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-17 14:10:12
Source code size: 360 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 247 / 327
Version history: 3 change(s)
Referenced in: [show references]