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

16
LINES

< > BotCompany Repo | #1016700 // Demo Audio Loop [Dyn Module]

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

Uses 911K of libraries. Click here for Pure Java version (4617L/25K).

1  
!7
2  
3  
import static x30_pkg.x30_util.VF1;
4  
5  
cmodule DemoAudioLoop > DynPrintLog {
6  
  transient short[] loop;
7  
  transient VF1<double[]> source;
8  
  
9  
  void start {
10  
    // download & load WAV
11  
    loop = decodeWAVToStereoSamples(loadLibrary(#1400093));
12  
    
13  
    // Make sound source & add to audio output module
14  
    dm_addSoundSource(source = stereoSamplesIterator(loop));
15  
  }
16  
}

Author comment

Began life as a copy of #1016699

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1016700
Snippet name: Demo Audio Loop [Dyn Module]
Eternal ID of this version: #1016700/10
Text MD5: 9368652c767487a11f00e486524e0d17
Transpilation MD5: 45d049d1698d0ee1f949a796ae8aee04
Author: stefan
Category: javax / audio
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-06 23:45:18
Source code size: 384 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 425 / 2402
Version history: 9 change(s)
Referenced in: [show references]