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

11
LINES

< > BotCompany Repo | #1018843 // dm_onNewRecordingOrWAVOnClipboard

JavaX fragment (include)

1  
svoid dm_onNewRecordingOrWAVOnClipboard(final VF1<File> onFile) {
2  
  dm_ownResource(vmBus_onMessage('newRecording, onFile));
3  
  // currently only reacts to in-OS clipboard copies
4  
  dm_ownResource(vmBus_onMessage('newClipboardContents, voidfunc(O o) {
5  
    if (o instanceof S && ewic((S) o, ".wav")) {
6  
      File f = newFile((S) o);
7  
      if (isAbsolutePath(f) && f.exists())
8  
        callF(onFile, f);
9  
    }
10  
  }));
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018843
Snippet name: dm_onNewRecordingOrWAVOnClipboard
Eternal ID of this version: #1018843/4
Text MD5: 530970b03e270b8c9a897f4b4a394bd0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 12:09:17
Source code size: 422 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 345 / 392
Version history: 3 change(s)
Referenced in: [show references]