Frequency domain and time domain analysis of thermoacoustic oscillations with wave-based acoustics