CM_OPEN_PLAYBACK
err = open_device_check(cm, CM_OPEN_PLAYBACK, substream);
close_device_check(cm, CM_OPEN_PLAYBACK);