1 | static short[] decodeWAVToStereoSamples(File wavFile) ctex { |
2 | if (wavFile == null) null; |
3 | temp WAVDecoder decoder = new(newFileInputStream(wavFile)); |
4 | new L<short[]> chunks; |
5 | while licensed { |
6 | short[] buf = new short[4096]; |
7 | int n = decoder.readStereoSamples(buf); |
8 | if (n <= 0) break; |
9 | chunks.add(subArray(buf, 0, n)); |
10 | } |
11 | ret concatShortArrays(chunks); |
12 | } |
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: | 457 / 485 |
Version history: | 2 change(s) |
Referenced in: | [show references] |