def __init__(self, dev, rate): if rate == None: rate = 11025 self.rate = rate self.sdr = sdrplay.open(dev) self.sdrrate = self.sdr.getrate() self.resampler = weakutil.Resampler(self.sdrrate, self.rate)
def __init__(self, devname): self.sdr = sdrplay.open(devname)