1 | static VF1<double[]> stereoSamplesIterator_single(final short[] samples, final Runnable whenDone) {
|
2 | ret new VF1<double[]>() {
|
3 | int sampleIndex = 0; |
4 | public void get(double[] pair) {
|
5 | if (sampleIndex >= l(samples)) |
6 | ret with pair[0] = Double.NaN; |
7 | pair[0] = samples[sampleIndex]; |
8 | pair[1] = samples[sampleIndex+1]; |
9 | sampleIndex += 2; |
10 | if (sampleIndex >= l(samples)) |
11 | callF(whenDone); |
12 | } |
13 | }; |
14 | } |
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: | 808 / 862 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |