def get_wave_for_header(header, output):
    w = wave.open(output, 'w')
    w.setframerate(consts.AudioSampleRate.Rates[header.soundRate])
    w.setnchannels(consts.AudioChannels.Channels[header.soundChannels])
    w.setsampwidth(consts.AudioSampleSize.Bits[header.soundSampleSize] / 8)
    return w
dataset/ETHPy150Open timknip/pyswf/swf/sound.py/get_wave_for_header/original