Skip to content

Kirill71/wav2mp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wav2mp3

Simple convertor wav to mp3

Conditions

  1. The application is called with pathname as argument, all WAV-files contained directly in that folder are to be encoded to MP3;
  2. Use all available CPU cores for the encoding process in an efficient way by utilizing multi-threading;
  3. Statically link to lame encoder library;
  4. Application should be compilable and runnable on Windows and Linux;
  5. The resulting MP3 files are to be placed within the same directory as the source WAV files, the filename extension should be changed appropriately to .MP3 non-WAV files in the given folder shall be ignored;
  6. Multithreading shall be implemented by means of using Posix Threads;
  7. The Boost library shall not be used;
  8. The LAME encoder should be used with reasonable standard settings.

Linux

Buildable on any more-or-less modern distribution (gcc 4.8+) as easy as "cmake . && make". Static libmp3lame library must be installed to /usr/local/lib prior to building app or you can use local lame lib just configure CMake with flag "-DUSE_LOCAL_LAME_LIB=TRUE".

Windows

Latest cmake properly work with latest Visual Studio since 19 version. Project can be opened in Visual Studio and will be built. You don't need any additional steps. I haven't tried building it using MinGW but I suppose it will work(or you will need some small efford:))