Commit 88a61fe2 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

evaluate edited parameters in ivas_param_ism_params_to_masa_param_mapping

parent ba6886f6
Loading
Loading
Loading
Loading
Loading
+16 −7
Original line number Diff line number Diff line
@@ -1462,13 +1462,22 @@ void ivas_param_ism_params_to_masa_param_mapping(
        {
            brange[0] = hParamIsmDec->hParamIsm->band_grouping[band_idx];
            brange[1] = hParamIsmDec->hParamIsm->band_grouping[band_idx + 1];

#ifdef OBJ_EDITING_API
			azimuth[0] = (int16_t) roundf( hParamIsmDec->edited_azimuth_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][0]] );
            elevation[0] = (int16_t) roundf( hParamIsmDec->edited_elevation_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][0]] );
#else
			azimuth[0] = (int16_t)roundf(hParamIsmDec->azimuth_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][0]]);
			elevation[0] = (int16_t)roundf(hParamIsmDec->elevation_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][0]]);
#endif
			power_ratio[0] = hParamIsmDec->power_ratios[band_idx][0][0];

#ifdef OBJ_EDITING_API
            azimuth[1] = (int16_t) roundf( hParamIsmDec->edited_azimuth_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][1]] );
            elevation[1] = (int16_t) roundf( hParamIsmDec->edited_elevation_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][1]] );
#else
			azimuth[1] = (int16_t)roundf(hParamIsmDec->azimuth_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][1]]);
			elevation[1] = (int16_t)roundf(hParamIsmDec->elevation_values[hParamIsmDec->hParamIsm->obj_indices[band_idx][0][1]]);
#endif
			power_ratio[1] = hParamIsmDec->power_ratios[band_idx][0][1];

            for ( sf_idx = 0; sf_idx < MAX_PARAM_SPATIAL_SUBFRAMES; sf_idx++ )