Initial conversion of audtag to C++.