def write_sound_to_file(st, output):
    assert isinstance(st, tag.TagDefineSound)
    if st.soundFormat == consts.AudioCodec.MP3:
        swfs = stream.SWFStream(st.soundData)
        seekSamples = swfs.readSI16()
        output.write(swfs.read())
    elif uncompressed in st.soundFormat:
        w = get_wave_for_header(st, output)
        w.writeframes(st.soundData.read())
        w.close()
dataset/ETHPy150Open timknip/pyswf/swf/sound.py/write_sound_to_file/swapped operands of `in`