示例#1
0
 def test_XXX_player(self, w, typeid, testfile):
     try:
         soundcard.play_mediafile(
             typeid,
             os.path.join('exercises/standard/lesson-files/share',
                          testfile))
     except osutils.BinaryBaseException, e:
         solfege.win.display_error_message2(e.msg1, e.msg2)
示例#2
0
 def play_midieventstream(self, midieventstream):
     midieventstream.create_midifile(self.m_tmpfilename)
     soundcard.play_mediafile('midi', self.m_tmpfilename)
示例#3
0
 def test_XXX_player(self, w, typeid, testfile):
     try:
         soundcard.play_mediafile(typeid, os.path.join('exercises/standard/lesson-files/share', testfile))
     except osutils.BinaryBaseException, e:
         solfege.win.display_error_message2(e.msg1, e.msg2)
示例#4
0
 def play_midieventstream(self, midieventstream):
     midieventstream.create_midifile(self.m_tmpfilename)
     soundcard.play_mediafile('midi', self.m_tmpfilename)