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