def __init__(self, control):
""" Initializes the SoundDRF class."""
self.control = control
ch = string.split(self.control.channel, ':')
self.channel = ch[0]
self.sub_channel = int(ch[1])
# open digital RF path
self.dio = drf.DigitalRFReader(self.control.path)
if self.control.verbose:
print 'channel bounds:', self.dio.get_bounds(self.channel)
self.bounds = self.dio.get_bounds(self.channel)
print 'bounds ', self.bounds
评论列表
文章目录