Lines Matching defs:infoJson
51 bool DAudioHandler::AddItemsToObject(DHItem &dhItem, cJSON* infoJson, const int32_t &dhId)
59 cJSON_AddItemToObject(infoJson, "SampleRates", sampleArray);
66 cJSON_AddItemToObject(infoJson, "ChannelMasks", channelArray);
73 cJSON_AddItemToObject(infoJson, "Formats", formatsArray);
81 cJSON_AddItemToObject(infoJson, "SampleRates", sampleArray);
88 cJSON_AddItemToObject(infoJson, "ChannelMasks", channelArray);
95 cJSON_AddItemToObject(infoJson, "Formats", formatsArray);
130 cJSON* infoJson = cJSON_CreateObject();
131 if (infoJson == nullptr) {
136 if (!AddItemsToObject(dhItem, infoJson, dhId)) {
137 cJSON_Delete(infoJson);
140 cJSON_AddNumberToObject(infoJson, INTERRUPT_GROUP_ID, dev->interruptGroupId_);
141 cJSON_AddNumberToObject(infoJson, VOLUME_GROUP_ID, dev->volumeGroupId_);
142 cJSON_AddStringToObject(infoJson, KEY_DATATYPE, dataType.c_str());
144 char *jsonInfo = cJSON_Print(infoJson);
147 cJSON_Delete(infoJson);
159 cJSON_Delete(infoJson);