def test_audio_callback_smoke(self): def callback(data): pass top = Top(devices={'s1': SimulatedDeviceForTest(freq=0)}) (_key, _receiver) = top.add_receiver('AM', key='a') top.add_audio_callback(callback, 48000) top.remove_audio_callback(callback)
def test_mono(self): def callback(data): pass top = Top(devices={'s1': SimulatedDeviceForTest(freq=0)}, features={'stereo': False}) (_key, _receiver) = top.add_receiver('AM', key='a') top.add_audio_callback(callback, 48000) top.remove_audio_callback(callback)
def test_mono(self): def callback(data): pass top = Top( devices={'s1': SimulatedDeviceForTest(freq=0)}, features={'stereo': False}) (_key, _receiver) = top.add_receiver('AM', key='a') top.add_audio_callback(callback, 48000) top.remove_audio_callback(callback)