You use the simple present when the dog barks once or twice; it is an event which happens at that time and finishes. It may well be the main event in that specific scene. You would use the present continuous when the barking of the dog is not the main event on screen and is ongoing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.