Lines Matching refs:chn
20 def opsIsChannel(self, dir, chn): argument
21 return chn >= 0 and chn < self.channels
100 def opsGetVolume(self, dir, chn): argument
101 return (0, self.volumeToUser(self.volumeinfo[dir], dir, self.volumearray[dir][chn]))
103 def opsSetVolume(self, dir, chn, value): argument
105 if self.volumearray[dir][chn] == val:
107 self.volumearray[dir][chn] = val
112 def opsGetSwitch(self, dir, chn): argument
113 return (0, self.switcharray[dir][chn])
115 def opsSetSwitch(self, dir, chn, value): argument
116 if self.switcharray[dir][chn] and value:
118 if not self.switcharray[dir][chn] and not value:
162 def opsGetEnumItem(self, chn): argument
163 if chn >= self.channels:
165 return (0, self.enumarray[chn])
167 def opsSetEnumItem(self, chn, value): argument
168 if chn >= self.channels:
170 if self.enumarray[chn] == value:
172 self.enumarray[chn] = int(value)