Lines Matching refs:sr
27 def __init__(self, dt, sr): argument
30 self.sr = sr
42 self.sr == T.SRATE_32K and nbytes > 80
45 self.sr >= T.SRATE_48K and nbytes >= 100
48 self.sr == T.SRATE_32K and nbytes >= 61 and nbytes < 150
51 self.sr >= T.SRATE_48K and nbytes >= 75 and nbytes < 150
108 for sr in range(T.SRATE_16K, T.NUM_SRATE):
110 attdet = AttackDetector(dt, sr)
114 f_att = lc3.attdet_run(dt, sr, nbytes,
115 initial_state(), 2 * rng.random(T.NS[dt][sr]+6) - 1)
121 def check_unit(rng, dt, sr): argument
123 ns = T.NS[dt][sr]
126 attdet = AttackDetector(dt, sr)
143 f_att_c = lc3.attdet_run(dt, sr, 100, state_c, x_c)
154 sr = T.SRATE_48K
159 f_att = lc3.attdet_run(dt, sr, C.NBYTES_ATT[dt], state, x)
163 f_att = lc3.attdet_run(dt, sr, C.NBYTES_ATT[dt], state, x)
177 for sr in range(T.SRATE_32K, T.NUM_SRATE):
178 ok = ok and check_unit(rng, dt, sr)