HolyLib Wiki

SetData

  VoiceStream:SetData( table data, boolean directData = false )

Description

Sets the VoiceStream from the given table.

Recently Changed

This was recently changed in version (0.8 - DEV).

The directData argument was added.

Arguments

1table data
The table containing the VoiceData to store.
key(number) = tick number
value(VoiceData) = voice data to store
2boolean directData = false

directData - If true it will store the VoiceData itself instead of creating a copy that would be saved, if you modify the VoiceData after you called this, you will change the VoiceData stored in the stream!
This argument will reduce memory usage & should improve performance slightly