comparison tests/swig_tests/audio_tests.py @ 42:4c8334b0ab30

switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 13 Jul 2008 07:43:33 +0000
parents 4a0efb7baf70
children d2f1e81fbe2c
comparison
equal deleted inserted replaced
41:b661ba234c3b 42:4c8334b0ab30
19 sound = self.soundmanager.createEmitter() 19 sound = self.soundmanager.createEmitter()
20 id = self.engine.getSoundClipPool().addResourceFromFile('tests/data/left_right_test.ogg') 20 id = self.engine.getSoundClipPool().addResourceFromFile('tests/data/left_right_test.ogg')
21 sound.setSoundClip(id) 21 sound.setSoundClip(id)
22 sound.setLooping(True) 22 sound.setLooping(True)
23 sound.play() 23 sound.play()
24 time.sleep(15); 24 time.sleep(3);
25 25
26 def test2Streams(self): 26 def test2Streams(self):
27 em = self.soundmanager.createEmitter() 27 em = self.soundmanager.createEmitter()
28 sound = self.soundmanager.createEmitter() 28 sound = self.soundmanager.createEmitter()
29 id = self.engine.getSoundClipPool().addResourceFromFile('tests/data/left_right_test.ogg') 29 id = self.engine.getSoundClipPool().addResourceFromFile('tests/data/left_right_test.ogg')
32 sound.setCursor(fife.SD_TIME_POS, 5) 32 sound.setCursor(fife.SD_TIME_POS, 5)
33 em.setSoundClip(id) 33 em.setSoundClip(id)
34 em.setGain(0.7) 34 em.setGain(0.7)
35 em.play() 35 em.play()
36 sound.play() 36 sound.play()
37 time.sleep(15); 37 time.sleep(3);
38 38
39 TEST_CLASSES = [TestAudio] 39 TEST_CLASSES = [TestAudio]
40 40
41 if __name__ == '__main__': 41 if __name__ == '__main__':
42 unittest.main() 42 unittest.main()