rsudp.c_alertsound (play sound)

class rsudp.c_alertsound.AlertSound(testing=False, soundloc=False, q=False)

A consumer class that plays an alert sound when an ALARM message arrives on the queue. rsudp.c_alertsound.AlertSound.sound is a pydub.AudioSegment object and is passed from the client.

Parameters:
run()

Reads data from the queue and plays self.sound if it sees an ALARM message. Quits if it sees a TERM message.


Back to top ↑