Loading lib_com/ivas_error.h +3 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,9 @@ typedef enum #ifdef CONTROL_METADATA_REVERB IVAS_ERR_INVALID_RENDER_CONFIG, IVAS_ERR_ACOUSTIC_ENVIRONMENT_MISSING, #ifdef CONTROL_METADATA_DIRECTIVITY IVAS_ERR_DIRECTIVITY_PATTERN_ID_MISSING, #endif #endif #ifdef SPLIT_REND_WITH_HEAD_ROT IVAS_ERR_LC3PLUS_INVALID_BITRATE, Loading lib_util/render_config_reader.c +19 −4 Original line number Diff line number Diff line Loading @@ -2955,7 +2955,7 @@ ivas_error RenderConfigReader_getAcousticEnvironment( #endif #ifdef CONTROL_METADATA_REVERB #ifdef CONTROL_METADATA_DIRECTIVITY /*------------------------------------------------------------------------------------------* * RenderConfigReader_getDirectivity() * Loading @@ -2968,7 +2968,9 @@ ivas_error RenderConfigReader_getDirectivity( float *directivity /* o : Target directivity */ ) { uint16_t n; uint16_t n, m; bool idExists; if ( pRenderConfigReader == NULL ) { Loading @@ -2987,7 +2989,20 @@ ivas_error RenderConfigReader_getDirectivity( { for ( n = 0; n < MAX_NUM_OBJECTS; n++ ) { idExists = false; for ( m = 0; m < pRenderConfigReader->nDP; m++ ) { if ( id[n] == pRenderConfigReader->pDP[m].id ) { idExists = true; mvr2r( pRenderConfigReader->pDP[id[n]].pDirectivity, directivity + ( n * 3 ), 3 ); break; } } if ( !idExists ) { return IVAS_ERR_DIRECTIVITY_PATTERN_ID_MISSING; } } } return IVAS_ERR_OK; Loading Loading
lib_com/ivas_error.h +3 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,9 @@ typedef enum #ifdef CONTROL_METADATA_REVERB IVAS_ERR_INVALID_RENDER_CONFIG, IVAS_ERR_ACOUSTIC_ENVIRONMENT_MISSING, #ifdef CONTROL_METADATA_DIRECTIVITY IVAS_ERR_DIRECTIVITY_PATTERN_ID_MISSING, #endif #endif #ifdef SPLIT_REND_WITH_HEAD_ROT IVAS_ERR_LC3PLUS_INVALID_BITRATE, Loading
lib_util/render_config_reader.c +19 −4 Original line number Diff line number Diff line Loading @@ -2955,7 +2955,7 @@ ivas_error RenderConfigReader_getAcousticEnvironment( #endif #ifdef CONTROL_METADATA_REVERB #ifdef CONTROL_METADATA_DIRECTIVITY /*------------------------------------------------------------------------------------------* * RenderConfigReader_getDirectivity() * Loading @@ -2968,7 +2968,9 @@ ivas_error RenderConfigReader_getDirectivity( float *directivity /* o : Target directivity */ ) { uint16_t n; uint16_t n, m; bool idExists; if ( pRenderConfigReader == NULL ) { Loading @@ -2987,7 +2989,20 @@ ivas_error RenderConfigReader_getDirectivity( { for ( n = 0; n < MAX_NUM_OBJECTS; n++ ) { idExists = false; for ( m = 0; m < pRenderConfigReader->nDP; m++ ) { if ( id[n] == pRenderConfigReader->pDP[m].id ) { idExists = true; mvr2r( pRenderConfigReader->pDP[id[n]].pDirectivity, directivity + ( n * 3 ), 3 ); break; } } if ( !idExists ) { return IVAS_ERR_DIRECTIVITY_PATTERN_ID_MISSING; } } } return IVAS_ERR_OK; Loading