Write a C/C++ commandline application that encodes a set of WAV files to MP3
Requirements:
- application is called with pathname as argument, e.g.
<applicationname> F:\MyWavCollectionall WAV-files contained directly in that folder are to be encoded to MP3 - use all available CPU cores for the encoding process in an efficient way by utilizing multi-threading
- statically link to lame encoder library
- application should be compilable and runnable on Windows and Linux
- 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
- multithreading shall be implemented in a portable way, for example using POSIX pthreads.
- frameworks such as Boost or Qt shall not be used
- the LAME encoder should be used with reasonable standard settings (e.g. quality based encoding with quality level "good")