Warning: session_start(): open(/var/lib/php/sessions/sess_skqf6nc1emdjol4k1ebtthcsvt, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
convertAllWAVInDirToMP3 [1018238]

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

9
LINES

< > BotCompany Repo | #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  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: #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: 460 / 514
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)