static short[] decodeWAVToStereoSamples(File wavFile) ctex { if (wavFile == null) null; temp WAVDecoder decoder = new(newFileInputStream(wavFile)); new L<short[]> chunks; while licensed { short[] buf = new short[4096]; int n = decoder.readStereoSamples(buf); if (n <= 0) break; chunks.add(subArray(buf, 0, n)); } ret concatShortArrays(chunks); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016685 |
| Snippet name: | decodeWAVToStereoSamples |
| Eternal ID of this version: | #1016685/3 |
| Text MD5: | 6e2134c15b15a856eaa62815f8892fc0 |
| Author: | stefan |
| Category: | javax / sound |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-08 16:21:20 |
| Source code size: | 384 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 750 / 795 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019662 - decodeWAVToMonoSamples #1020116 - decodeAudioFileToStereoSamples |