Inflow-outflow boundary conditions for two-dimensional acoustic waves in channels with flow