예제 #1
0
 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)
예제 #2
0
파일: test_top.py 프로젝트: kpreid/shinysdr
 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)
예제 #3
0
    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)
예제 #4
0
파일: test_top.py 프로젝트: kpreid/shinysdr
 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)