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

3
LINES

< > BotCompany Repo | #1026894 // sixteenBitAudioSampleToDouble - -32768...32767 to -1.0...1.0

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

Transpiled version (41L) is out of date.

1  
static double sixteenBitAudioSampleToDouble(int s) {
2  
  ret clamp(s/32767.0, -1.0, 1.0);
3  
}

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: #1026894
Snippet name: sixteenBitAudioSampleToDouble - -32768...32767 to -1.0...1.0
Eternal ID of this version: #1026894/2
Text MD5: bfc01e2e5b09a1ea48b1c8bf536b0073
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-02 15:03:53
Source code size: 91 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 275 / 328
Version history: 1 change(s)
Referenced in: [show references]