jam and cue to C++ API.