Commit 5650e52c authored by vaclav's avatar vaclav
Browse files

formal improvements

parent 29f210c9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -337,8 +337,6 @@ ivas_error TDREND_MIX_AddSrc(
    TDREND_SRC_t *Src_p;
    ivas_error error;

    error = IVAS_ERR_OK;

    /* Get unique source index */
    *SrcInd = hBinRendererTd->MaxSrcInd + 1;
    hBinRendererTd->MaxSrcInd++;
@@ -375,7 +373,7 @@ ivas_error TDREND_MIX_AddSrc(
        }
    }

    return error;
    return IVAS_ERR_OK;
}


+1 −3
Original line number Diff line number Diff line
@@ -636,8 +636,6 @@ ivas_error TDREND_SRC_Alloc(
    ivas_error error;
    TDREND_SRC_t *Src_p;

    error = IVAS_ERR_OK;

    *Src_pp = NULL;

    /* Allocate the TDREND_SRC_t variable */
@@ -660,7 +658,7 @@ ivas_error TDREND_SRC_Alloc(

    *Src_pp = Src_p;

    return error;
    return IVAS_ERR_OK;
}


+8 −6
Original line number Diff line number Diff line
@@ -1185,13 +1185,14 @@ ivas_error load_HRTF_binary(
    const hrtfFileReader *hrtfReader /* i/o: pointer to hrtfFileReader handle    */
)
{
    ivas_error error;
    if ( hrtfReader == NULL || hrtfReader->file == NULL )
    {
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

    fseek( hrtfReader->file, 0, SEEK_SET );

    error = TDREND_MIX_LoadHRTF( hrtfReader->file, hHrtf );

    return error;
    return TDREND_MIX_LoadHRTF( hrtfReader->file, hHrtf );
}

#ifndef FIX_POINT_HRTF_FILE_FORMAT
@@ -3383,7 +3384,7 @@ ivas_error load_fastconv_HRTF_from_binary(
            if ( ( create_fastconv_HRTF_from_rawdata( &hHrtfFastConv, hrtf_data, hrtf_header.rend_type, hrtf_header.input_cfg ) ) != IVAS_ERR_OK )
            {
                free( hrtf_data );
                return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Could not create HRTF from binary file" );
                return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Could not create FastConv HRTF from binary file" );
            }
            asFastconv = 1;
        }
@@ -3549,7 +3550,7 @@ ivas_error load_parambin_HRTF_from_binary(
            if ( ( create_parambin_HRTF_from_rawdata( &hHrtfParamBin, hrtf_data ) ) != IVAS_ERR_OK )
            {
                free( hrtf_data );
                return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Could not create HRTF from binary file" );
                return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Could not create ParamBin HRTF from binary file" );
            }
            asParam = 1;
        }
@@ -3744,6 +3745,7 @@ static void destroy_HRTF(
 *
 * Destroy the HRTF data set.
 *---------------------------------------------------------------------*/

void destroy_SetOfHRTF(
    HRTFS_CREND_HANDLE *hSetOfHRTF /* i/o: Set of HRTF CRend handle */
)