Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1018614 // toWAVFile

JavaX fragment (include)

static File toWAVFile(File audioFile) {
  if (hasExtension(audioFile, "mp3"))
    ret mp3ToTempWAV(audioFile);
  if (hasExtension(audioFile, "wav"))
    ret audioFile;
  fail("Can't convert file to WAV: " + f2s(audioFile));
}

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: #1018614
Snippet name: toWAVFile
Eternal ID of this version: #1018614/1
Text MD5: fdef576e95ad4f34567d4462423c5586
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-07 16:33:15
Source code size: 231 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 305 / 340
Referenced in: [show references]