When sound of thunder travels to the listener from its location, different parts of the same wave have to travel through air of different moisture levels, densities, and molar masses.
This is what I found when I wanted to know about the reason for the rolling sound of thunder (the sound which can be heard many times and for longer times). But as I read it I found it unclear and failed to visualize the overall process when sound travels thereby giving the rolling sound of thunder. I also failed to understand how there will be different moisture levels in the air or what it meant!
I also went through this question but it didn't serve to answer my question or help me to understand the overall process.
Best Answer
Thunder
You are talking not of the original boom, but of the rolling thunder during thunder storms.In addition to the extent of the generating lightning stroke clouds enhance the effect of rolling and can carry the sound between levels. It is evident that there are clouds at several levels when lightning strikes. These levels create corridors of different densities ( cloud density, air). These form a type of acoustic waveguide reverberating and echoing creating the roll.
There is an anecdotal story from the Greek revolution in 1821 when an ambush in the mountains was betrayed because the discussion of how it would happen was transmitted booming through the cloud layers and people were warned.