def loopback(self, out_port, in_port, s): if not self.ready: print "Dry run first!" return dat = util.loopback(self.audio_sig, s, out_port, in_port) self.ready = False return dat
def transmit(self, out_port, s): if not self.ready: print "Dry run first!" return util.loopback(self.audio_sig, s, out_port) self.ready = False