Commit c5b53dbf authored by lefort's avatar lefort
Browse files

Cleaned.

parent 1295761a
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -465,7 +465,7 @@ int main( int argc, char *argv[] )
    memcpy( file_header_wptr, &( nbHRTF ), sizeof( int16_t ) );
    file_header_wptr += sizeof( int16_t );

    hrtf_size_max -= 4 * sizeof( int32_t ); // ???? demander à Arnaud
    hrtf_size_max -= sizeof( ivas_hrtfs_header_t ); // Keep only the raw data size max (w/o the header of the hrtf)
    memcpy( file_header_wptr, &( hrtf_size_max ), sizeof( int32_t ) );
    file_header_wptr += sizeof( int32_t );

@@ -2584,13 +2584,14 @@ int32_t read_hrtf_size( char *hrtf )

    if ( hrtf != NULL )
    {
        // Get the raw data size
        hrtf_rptr += sizeof( int32_t ); // RENDERER_TYPE
        hrtf_rptr += sizeof( int32_t ); // BINAURAL_INPUT_AUDIO_CONFIG
        hrtf_rptr += sizeof( int32_t );

        hrtf_rptr += sizeof( int32_t ); // Sampling Frequency
        memcpy( &( hrtf_size ), hrtf_rptr, sizeof( uint32_t ) );
        hrtf_size += sizeof( int32_t ) + sizeof( int32_t ) + sizeof( int32_t ) + sizeof( int32_t ); // + hrtf header size
        // hrtf_rptr += sizeof(uint32_t);

        // Add the hrtf header's size
        hrtf_size += sizeof( ivas_hrtfs_header_t );
    }

    return hrtf_size;