Sound provides audio feedback for automation components. More...

Public Types | |
enum | Soundmode { Drive , Pick } |
enum | Soundtype { Robot1 , Robot2 , SmallElectric1 , SmallElectric2 , AirPressure } |
Public Attributes | |
Soundmode | Mode |
Sound playback mode: Drive for continuous speed-based sound, Pick for one-shot events. | |
Soundtype | SoundType |
Type of industrial sound to play (robot, electric motor, air pressure) | |
float | SpeedMax |
Maximum drive speed in millimeters per second for pitch calculation. | |
float | PitchMin |
Minimum pitch value when drive is at low speed. | |
float | PitchMax |
Maximum pitch value when drive is at maximum speed. | |
bool | PlayAudio |
Controls audio playback (start/stop) | |
float | Volume |
Audio volume level (0 to 1) | |
float | Pitch |
Audio pitch multiplier (automatically adjusted in Drive mode) | |
bool | IsPlaying |
Indicates if audio is currently playing. | |
Detailed Description
Sound provides audio feedback for automation components.
It can play sounds based on drive movement speed or triggered events (like picks). Supports various industrial sound types and automatically adjusts pitch based on drive speed.
Member Data Documentation
◆ IsPlaying
bool realvirtual.Sound.IsPlaying |
Indicates if audio is currently playing.
◆ Mode
Soundmode realvirtual.Sound.Mode |
Sound playback mode: Drive for continuous speed-based sound, Pick for one-shot events.
◆ Pitch
float realvirtual.Sound.Pitch |
Audio pitch multiplier (automatically adjusted in Drive mode)
◆ PitchMax
float realvirtual.Sound.PitchMax |
Maximum pitch value when drive is at maximum speed.
◆ PitchMin
float realvirtual.Sound.PitchMin |
Minimum pitch value when drive is at low speed.
◆ PlayAudio
bool realvirtual.Sound.PlayAudio |
Controls audio playback (start/stop)
◆ SoundType
Soundtype realvirtual.Sound.SoundType |
Type of industrial sound to play (robot, electric motor, air pressure)
◆ SpeedMax
float realvirtual.Sound.SpeedMax |
Maximum drive speed in millimeters per second for pitch calculation.
◆ Volume
float realvirtual.Sound.Volume |
Audio volume level (0 to 1)