[PATCH v2 21/32] sandbox: sound: Handle errors better in sound_beep()