Commit edf476ff authored by vaclav's avatar vaclav
Browse files

fix MSVC compilation warnings

parent 394140be
Loading
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -485,7 +485,7 @@ static int16_t getTotalNumInChannels(
    }

#ifdef NOKIA_MASA_EXTERNAL_RENDERER
    for ( int32_t i = 0; i < RENDERER_MAX_MASA_INPUTS; ++i )
    for ( i = 0; i < RENDERER_MAX_MASA_INPUTS; ++i )
    {
        if ( masaIds[i] == 0 )
        {
@@ -983,13 +983,12 @@ int main(
#ifdef NOKIA_MASA_EXTERNAL_RENDERER
        for ( i = 0; i < args.inConfig.numMasaBuses; ++i )
        {
            int16_t numChannels;
            if ( ( error = IVAS_REND_GetInputNumChannels( hIvasRend, masaIds[i], &numChannels ) ) != IVAS_ERR_OK )
            {
                fprintf( stderr, "Error: %s\n", ivas_error_to_string( error ) );
                exit( -1 );
            }
            IVAS_REND_ReadOnlyAudioBuffer tmpBuffer = getReadOnlySubBuffer( inBuffer, args.inConfig.masaBuses[i].inputChannelIndex, numChannels );
            IVAS_REND_ReadOnlyAudioBuffer tmpBuffer = getReadOnlySubBuffer( inBuffer, (int16_t) args.inConfig.masaBuses[i].inputChannelIndex, numChannels );

            if ( ( error = IVAS_REND_FeedInputAudio( hIvasRend, masaIds[i], tmpBuffer ) ) != IVAS_ERR_OK )
            {
@@ -1390,7 +1389,7 @@ static IVAS_REND_AudioConfig parseAudioConfig(
            case '1':
                fprintf( stderr, "1TC MASA support is not functional and is pending on DirAC renderer refactoring.\n" );
                exit( EXIT_FAILURE );
                return IVAS_REND_AUDIO_CONFIG_MASA1;
                /*return IVAS_REND_AUDIO_CONFIG_MASA1;*/ // ToDo: temporarily disabled to avoid compilation warnings
            case '2':
                return IVAS_REND_AUDIO_CONFIG_MASA2;
            default: