Fully compressible simulations of waves and core convection in main-sequence stars