예제 #1
0
 def __init__(self, arg, flags=0):
     self.arg = arg
     if isinstance(arg, SWFSoundStream):
         self.this = mingc.newSWFSound_fromSoundStream(arg)
     else:
         self.file = open(arg, "rb")
         self.this = mingc.newSWFSound(self.file, flags)
예제 #2
0
파일: ming.py 프로젝트: akleine/libming
 def __init__(self, arg, flags=0):
     self.arg = arg;
     if isinstance(arg, SWFSoundStream):
         self.this = mingc.newSWFSound_fromSoundStream(arg)
     else:
         self.file = open(arg, "rb")
         self.this = mingc.newSWFSound(self.file, flags)
예제 #3
0
 def __init__(self, fname):
     self.file = open(fname, "rb")
     self.this = mingc.newSWFSound(self.file)
예제 #4
0
 def __init__(self, fname):
     self.file = open(fname, "rb")
     self.this = mingc.newSWFSound(self.file)