GetStrRefSoundDuration(int)

Determine the duration of a sound attached to a string reference.

float GetStrRefSoundDuration(
    int nStrRef
);

Parameters

nStrRef

Target string reference.


Description

Returns the duration of the sound attached to the string reference nStrRef, measured in seconds. Returns 0.0 if no duration is stored or if no sound is attached to the string reference.



Remarks

nStrRef is an index into the dialog.tlk file or the custom tlk file associated with the module.

This would be most useful for pausing a conversation which uses sStrRef's talktable entry and sound, until the sound is finished.


Version

1.22

See Also

categories: Sound Effects Functions


 author: Daniel Beckman, editor: Jasperre