Gas dynamics in barred spirals - Gaseous density waves and galactic shocks