1 | static short[] mixStereoShortArrayToMono(short[] stereo) { |
2 | int n = l(stereo)/2; |
3 | short[] mono = new short[n]; |
4 | for i to n: |
5 | mono[i] = avgShort(stereo[i], stereo[i+1]); |
6 | ret mono; |
7 | } |
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: | #1019268 |
Snippet name: | mixStereoShortArrayToMono |
Eternal ID of this version: | #1019268/1 |
Text MD5: | 36fc7aa2b7fbb5f3bb1060e5f7e08b0b |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-28 18:08:08 |
Source code size: | 194 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 354 / 387 |
Referenced in: | [show references] |