HolyLib Wiki

GetIndex

  VoiceData VoiceStream:GetIndex( boolean directData = false )

Description

Returns a copy of the VoiceData for the given index or nil.

The returned VoiceData is just a copy as long as you didn't set directData
modifying them won't affect the internally stored VoiceData.
Call VoiceStream:SetData or VoiceStream:SetIndex after you modified it to update it.

Recently Changed

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

The directData argument was added.

Arguments

1boolean directData = false

If true it will return the VoiceData itself instead of creating a copy
If you modify it you will change the VoiceData stored in the stream!

Returns

1VoiceData voiceData
Copy of the internally stored VoiceData