Lines Matching refs:rate
30 rate = au.getframerate()
41 return (data, rate, 16, nchannels)
45 def play_sound_file(self, data, rate, ssize, nchannels): argument
76 expected_time = float(len(data)) / (ssize/8) / nchannels / rate
79 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
103 (fmt, channels, rate) = config
106 dsp.speed(rate) == rate):
114 result = dsp.setparameters(fmt, channels, rate, False)
115 self.assertEqual(result, (fmt, channels, rate),
118 result = dsp.setparameters(fmt, channels, rate, True)
119 self.assertEqual(result, (fmt, channels, rate),
129 rate = 44100
131 for config in [(fmt, 300, rate), # ridiculous nchannels
132 (fmt, -5, rate), # impossible nchannels
135 (fmt, channels, rate) = config
136 result = dsp.setparameters(fmt, channels, rate, False)
141 result = dsp.setparameters(fmt, channels, rate, True)