listsoundcardids: switch to C++ and use jsoncpp for output