On the interaction of shock waves and sound waves in transonic buffet flow