示例#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)