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

9
LINES

< > TinyBrain | #1018238 - convertAllWAVInDirToMP3

JavaX fragment (include)

svoid convertAllWAVInDirToMP3(File dir) {
  for (File wav : listFilesWithExtension(dir, "wav")) {
    File mp3 = replaceExtension(wav, "wav", "mp3");
    if (mp3.exists())
      print("File exists, skipping: " + mp3);
    else
      wavToMP3_128k(wav, mp3);
  }
}

download  show line numbers  debug dex   

Travelled to 8 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1018238
Snippet name: convertAllWAVInDirToMP3
Eternal ID of this version: #1018238/1
Text MD5: 1d5e327ac024a9bcacf6ceaf951a017c
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-11 21:09:55
Source code size: 271 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 13 / 22
Referenced in: [show]