Skip to content

TextStudioAudioPlayerRules

ClassTextStudioTextStudio
public static class TextStudioAudioPlayerRules

Pure routing and eligibility rules shared by runtime audio playback and validation.

ShouldPlayForCharacter(char, bool, string)

Section titled “ShouldPlayForCharacter(char, bool, string)”
public static bool ShouldPlayForCharacter(char character, bool ignoreWhitespaceAndPunctuation, string ignoredPunctuation)

Reports whether a visible character is eligible under whitespace and punctuation filtering.

Parameters

Name Type
character System.Char
ignoreWhitespaceAndPunctuation System.Boolean
ignoredPunctuation System.String

Returns

System.Boolean

public static string GetMarkerRouteId(string markerId, string[] parameters)

Resolves the canonical marker route from an action ID and positional parameters.

Parameters

Name Type
markerId System.String
parameters System.String[]

Returns

System.String

MarkerRouteMatches(string, string, string[])

Section titled “MarkerRouteMatches(string, string, string[])”
public static bool MarkerRouteMatches(string expectedRouteId, string markerId, string[] parameters)

Compares a configured route with an authored marker using ordinal case-insensitive matching.

Parameters

Name Type
expectedRouteId System.String
markerId System.String
parameters System.String[]

Returns

System.Boolean