Commit 670132ec authored by norvell's avatar norvell
Browse files

Fix for custom LS in FIX_198_TDREND_INTERFACE

parent ead05636
Loading
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -725,7 +725,18 @@ ivas_error ivas_rend_TDObjRendOpen(
#endif

#ifdef FIX_198_TDREND_INTERFACE
    if ( inConfig != IVAS_REND_AUDIO_CONFIG_LS_CUSTOM )
    {
        getAudioConfigNumChannels( inConfig, &nchan_transport );
        if ( getAudioConfigType( inConfig ) == IVAS_REND_AUDIO_CONFIG_TYPE_CHANNEL_BASED )
        {
            nchan_transport--; /* Skip LFE channel -- added to the others */
        }
    }
    else
    {
        nchan_transport = customLsInput->num_spk;
    }
    transport_config = getIvasAudioConfigFromRendAudioConfig( inConfig );
    ivas_format = ( getAudioConfigType( inConfig ) == IVAS_REND_AUDIO_CONFIG_TYPE_CHANNEL_BASED ) ? MC_FORMAT : ISM_FORMAT;
    hTransSetup.ls_azimuth = customLsInput->ls_azimuth;