Which sentence is written in the passive voice?

A. A bugler rudely awakened the sleeping troops.

B. All the papers on the table had been blown to the floor.

C. The sound of footsteps on gravel announced his presence.

D. We accidentally spilled a whole bottle of vanilla into the batter.