The influence of the superadiabatic convection region and the hydrogen-helium ionization region on the spectrum of acoustic oscillations are considered. The spectrum peculiarities are studied by means of the phase-shift function which describes the reflection of the acoustic waves by the outermost layers of the Sun. This function permits us to investigate the influence of the envelope structure upon the oscillations without all the model data. It is shown that in spite of the strong influence of the superadiabatic convection upon acoustic oscillations, its structural changes cannot explain the discrepancy between observations and theory. It is emphasized that the explanation of the discrepancy between observations and standard model calculations requires taking into account the non-ideal nature of the plasma.