static short[] decodeAudioFileToStereoSamples(File file) { if (file == null) null; if (isMP3File(file)) ret decodeWAVToStereoSamples(mp3ToTempWAV(file)); else if (isWAVFile(file)) ret decodeWAVToStereoSamples(file); fail("Unknown audio type: " + file); }
Began life as a copy of #1016685
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020116 |
Snippet name: | decodeAudioFileToStereoSamples |
Eternal ID of this version: | #1020116/1 |
Text MD5: | acb4e1f5cf305b3b5399afcdaa8aeaab |
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:36:09 |
Source code size: | 277 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 305 / 336 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |