Wrapper for c++ to control mplayer