!include once #1017982 // JAVE/ffmpeg static void mp3ToWAV_jave(File mp3, File wav) ctex { new AudioAttributes audio; new EncodingAttributes attrs; attrs.setFormat("wav"); attrs.setAudioAttributes(audio); File tempWAV = appendToFileName(wav, ".temp"); print("Converting " + f2s(mp3) + " to " + f2s(wav)); new Encoder().encode(mp3, tempWAV, attrs); forceRenameFile(tempWAV, wav); print(" [done]"); }
Began life as a copy of #1013801
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: | #1018574 |
Snippet name: | mp3ToWAV_jave (seems to work) |
Eternal ID of this version: | #1018574/7 |
Text MD5: | 70ec3d560a875fd338218e1e100bebd6 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-10 00:10:17 |
Source code size: | 430 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 311 / 368 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019781 - cutVideo_jave (dev.) |