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)
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)
def __init__(self, fname): self.file = open(fname, "rb") self.this = mingc.newSWFSound(self.file)