Sound Select

<< Click to Display Table of Contents >>

Manual > Library Reference > Parts Library > Basic Parts >

Sound Select

Sound Select

 

parts_soundselect_001

Sound Select is a component for playing sound files (WAV).

You can specify up to 10 different sound files.

 

 

 

 

Sound Select works in conjunction with the two Browser tag "$SOUND0" and "$SOUND1".

 

$SOUND0 is used to stop a sound and to select a sound. Writing 0 to $SOUND0 stops the sound. Writing an integer between 1 and 10 to $SOUND0 plays the sound file with the specified sound number.

$SOUND1 is used to control whether sound selection is enabled or disabled. Writing 0 to $SOUND1 disables it, and writing 1 enables it. Note that writing 1 to $SOUND1 resets $SOUND0 to 0.

 

By attaching this widget to a form that is always displayed (for example, a background form specified by the root HiddenForm), you will be able to play a sound whenever Panel Browser is running.

This component will be hidden during execution.

 

 

Custom Properties

 

setting

Activation at startup

_DefaultEnable

Specifies whether to enable or disable the feature at startup.


Mute on startup

_StartupMuteTime

At startup, no sound will be played for the number of milliseconds specified in this property.


Number of views

_RepeatCount

Specifies the number of times the sound should be played. Specifying -1 will cause the sound to play repeatedly.


Waiting time

_RepeatWaitTime

When playing a sound repeatedly, you can specify the amount of time (in milliseconds) to wait before playing the sound again.

Sound Settings

Sound 1

_SoundFile1

Specifies the sound file for sound number 1. By default, the sound "sys:alarm1.wav" in System Resources is set.


Sound 2

_SoundFile2

Specifies the sound file for sound number 2. By default, the sound "sys:alarm2.wav" in System Resources is set.


Sound 3

_SoundFile3

Specifies the sound file for sound number 3. By default, the sound "sys:alarm3.wav" in System Resources is set.


Sound 4

_SoundFile4

Specifies the sound file for sound number 4.


Sound 5

_SoundFile5

Specifies the sound file for sound number 5.


Sound 6

_SoundFile6

Specifies the sound file for sound number 6.


Sound 7

_SoundFile7

Specifies the sound file for sound number 7.


Sound 8

_SoundFile8

Specifies the sound file for sound number 8.


Sound 9

_SoundFile9

Specifies the sound file for sound number 9.


Sound 10

_SoundFile10

Specifies the sound file for sound number 10.

 

 

hint

Sound Select can be used in combination with "Stop Sound" and "Sound Enable/Disable Switch."