Writing C++ code for music players