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

14
LINES

< > BotCompany Repo | #1020079 // Play Sound On New Visitor

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 206K of libraries. Click here for Pure Java version (15553L/110K).

!7

module PlaySoundOnNewVisitor > DynPrintLogAndEnabled {
  start {
    dm_vmBus_onMessage_q('newHomePageVisitors, r { if (enabled) doSound() });
    dm_requireModule("#1016183/HomePageVisitors");
  }
  
  visualize {
    ret withCenteredButtons(super.visualize(), "Test the sound", rThread doSound);
  }
  
  void doSound enter { playWAVSnippetAndWait(#1400163); }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020079
Snippet name: Play Sound On New Visitor
Eternal ID of this version: #1020079/7
Text MD5: b42c900ce7ef5cc9c0f89364375537e9
Transpilation MD5: dcb51f7fc545b78fa8e2c5cfa0b4958b
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-16 14:19:30
Source code size: 381 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 244 / 1826
Version history: 6 change(s)
Referenced in: [show references]