HolyLib Wiki

SetIndex

  VoiceStream:SetIndex( number index, VoiceData voiceData, boolean directData = false )

Description

Create a copy of the given VoiceData and sets it onto the specific index and overrides any data thats already present.

Recently Changed

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

The directData argument was added.

Arguments

1number index
the index to store it in
2VoiceData voiceData
the VoiceData to store
3boolean 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