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

8
LINES

< > BotCompany Repo | #1026707 // dm_lowerVoiceVolume_speak

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

Transpiled version (2638L) is out of date.

svoid dm_lowerVoiceVolume_speak(O... _) {
  Float vol = dm_getVoiceOutputVolume();
  if (vol == null) ret;
  optPar float factor = 0.80f;
  print("Volume: " + vol + ", factor: " + factor);
  dm_setVoiceOutputVolume(vol *= factor);
  dm_sayInEnglish("New volume: " + toIntPercent(vol) + "%");
}

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: #1026707
Snippet name: dm_lowerVoiceVolume_speak
Eternal ID of this version: #1026707/4
Text MD5: b82e7f8abd8c5978aa8ae6808ceee451
Author: stefan
Category: javax / dynamic modules
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 14:17:25
Source code size: 300 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 184
Version history: 3 change(s)
Referenced in: [show references]