Class ConsoleAcoustic
Sound-related extensions for console
Inheritance
object
ConsoleAcoustic
Namespace
Syntax
public static class ConsoleAcoustic
Methods
ForceRecheck()
Forces Terminaux to check for audio cue support again
Declaration
public static void ForceRecheck()
GetSynthInfo(string)
Gets synth information from the synth JSON representation
Returns
Declaration
public static SynthInfo GetSynthInfo(string synthJson)
Parameters
| Name | Type | Description |
|---|---|---|
| synthJson | string | Synth JSON representation |
Exceptions
| Type | Condition |
|---|---|
| TerminauxException |
PlayKeyAudioCue(TermReaderSettings?, ConsoleKeyAudioCue)
Plays the keyboard audio cue (requires BassBoom)
Declaration
public static void PlayKeyAudioCue(TermReaderSettings? settings, ConsoleKeyAudioCue audioCue)
Parameters
| Name | Type | Description |
|---|---|---|
| settings | TermReaderSettings | Reader settings that has cue configuration. If null, the global input cue settings is used. |
| audioCue | ConsoleKeyAudioCue | Keyboard audio cue. |
PlaySynth(SynthInfo)
Plays the beep synth
Declaration
public static void PlaySynth(SynthInfo synthInfo)
Parameters
| Name | Type | Description |
|---|---|---|
| synthInfo | SynthInfo | Synth info. You can obtain this from GetSynthInfo(string). |
Exceptions
| Type | Condition |
|---|---|
| TerminauxException |