Menu

“Recoder”- the Windows Version

June 29, 2014 - Programming

In a Previous Post I provided a music transcoder program, which I called Recoder for no particularly good reason. This program was designed to simply take input files and convert them to .mp3, using the BASS.NET library.

That program was written as a Command-Line, console-driven application. Not the most user-friendly UI. At the time it made sense- I wanted MP3 files ASAP to stick on my MP3 player and figured that I may as well just grab my flac files and convert those- and since it was just for me at the time I went ahead and whipped up a quick BASS.NET based program to do the dirty work for me. It wasn’t until I was a good way into the task of programming it that I realized it would make an excellent topic to post about (which I proceeded to do).

In the closing of that previous article I mentioned the possibility of a future post documenting a Windows Version of that same program to some degree. This is that post.Windows Recoder

Behold it in all it’s glory! Originally I aimed for a fully asynchronous program- but then realized that if I went that route the UI tracking progress would be both confusing and a pain in the butt to code, so I kept the more synchronous approach, though the code is still using Tasks. At the core of the program is the same Function present in the older console version described in the previously linked post:

Effectively it simply tells BASS to re-encode the file. EncodeFileProc is the function called during the re-encode; this method is basically responsible for updating the appropriate UI of the program. The “meat” of the program itself is primarily in the orchestration to get things to that point:

The program also includes some useful functions that are used for similar ancillary purposes, such as recursively searching for files in a folder. The Full Source folder for This Windows version of Recoder can be found here.

Have something to say about this post? Comment!