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

8
LINES

< > BotCompany Repo | #1026946 // dm_addShortArraySoundSource

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

Transpiled version (10091L) is out of date.

1  
static VF1<double[]> dm_addShortArraySoundSource(short[] samples) {
2  
  if (samples == null) null;
3  
  // Make sound source & add to audio output module
4  
  final Var<VF1<double[]>> source = new Var;
5  
  source.set(stereoSamplesIterator_single(samples, r { dm_removeSoundSource(source!) }));
6  
  dm_addSoundSource(source!);
7  
  ret source!;
8  
}

Author comment

Began life as a copy of #1018676

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: #1026946
Snippet name: dm_addShortArraySoundSource
Eternal ID of this version: #1026946/3
Text MD5: 918855654d83dd11e7211638d4246512
Author: stefan
Category: javax / stefan's os / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-03 13:42:06
Source code size: 337 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 234 / 317
Version history: 2 change(s)
Referenced in: [show references]