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

8
LINES

< > BotCompany Repo | #1019321 // dm_recordSingleAudioChunk

JavaX fragment (include)

1  
static short[] dm_recordSingleAudioChunk() {
2  
  final new Var<short[]> var;
3  
  dm_addAudioListener(voidfunc(short[] buf) {
4  
    dm_removeAudioListener(this);
5  
    var.set(cloneShortArray(buf));
6  
  });
7  
  ret waitUntilVarNotNull(var);
8  
}

Author comment

Began life as a copy of #1017155

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019321
Snippet name: dm_recordSingleAudioChunk
Eternal ID of this version: #1019321/3
Text MD5: 51133d65f3a93e9cc1653d085ebff2ae
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-31 19:20:35
Source code size: 236 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 360
Version history: 2 change(s)
Referenced in: [show references]