Lines Matching refs:sr
43 def __init__(self, dt, sr): argument
46 self.sr = sr
51 sr = self.sr
57 for bw in range(sr):
58 i0 = BW_START[dt][sr][bw]
59 i1 = BW_STOP[dt][sr][bw]
67 if bw0 < sr:
69 i0 = BW_START[dt][sr][bw0] - l
70 i1 = BW_START[dt][sr][bw0]
74 bw = sr
81 return 0 if self.sr == 0 else \
82 1 + np.log2(self.sr).astype(int)
94 def check_unit(rng, dt, sr): argument
98 bwdet = BandwidthDetector(dt, sr)
100 for bw0 in range(sr+1):
108 for i in range(sr):
110 i0 = BW_START[dt][sr][i]
111 i1 = BW_STOP[dt][sr][i]
117 if bw0 < sr:
119 i0 = BW_START[dt][sr][bw0] - l
120 i1 = BW_START[dt][sr][bw0]
126 bw_c = lc3.bwdet_run(dt, sr, e)
134 sr = T.SRATE_16K
140 bw = lc3.bwdet_run(dt, sr, E_B[0])
143 bw = lc3.bwdet_run(dt, sr, E_B[1])
154 for sr in range(T.NUM_SRATE):
155 ok = ok and check_unit(rng, dt, sr)