static VF1<double[]> stereoSamplesIterator_single(final short[] samples, final Runnable whenDone) { ret new VF1<double[]>() { int sampleIndex = 0; public void get(double[] pair) { if (sampleIndex >= l(samples)) ret with pair[0] = Double.NaN; pair[0] = samples[sampleIndex]; pair[1] = samples[sampleIndex+1]; sampleIndex += 2; if (sampleIndex >= l(samples)) callF(whenDone); } }; }
Began life as a copy of #1016686
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018672 |
| Snippet name: | stereoSamplesIterator_single - doesn't loop |
| Eternal ID of this version: | #1018672/3 |
| Text MD5: | b19f37ed74f5e0e234230ac5d1741cf4 |
| Author: | stefan |
| Category: | javax / sound |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-12 15:50:22 |
| Source code size: | 455 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 811 / 864 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |