Name | Description | Attributes | Value Type |
---|
Settings |
Sound Device | The particular sound device selected for the audio playback among a list of devices installed on a computer . If the option Primary Audio Driver is selected, the default sound device will be always used for a playback. | D | List |
Playback mode | Defines the synchronization mode of the playback process. One of three modes can be selected:
Once – the sound playback is initiated synchronously with activation of the parent event and an audio clip is played once.
Loop - the start of sound playback is synchronized with activation of the parent event but, since that, an audio clip is played in a loop.
Manual – the sound playback is initiated manually by a request from code snippets. | D | List |
Monitor Playback | Defines if the element monitors the start and end playback times and is triggered at the end of the each playback | D | Boolean |
Test Playback | Use this action at the design time to initiate an testing playback with the current settings. | Design-time action |
Sound buffer |
Buffer Type | Defines a type of the sound buffer created for a playback. The buffer type is determined by its location in device/computer memory. | D | List |
Is Primary | f true, the element will try to allocate the primary buffer memory of the sound device for the fastest playback (exclusively for this element). The sound device has to support this option. | D | Boolean |
Priority | efines the priority of the allocated sound buffer relatively to other buffers. The lowest priority corresponds to 0. The greater is the positive value, the higher priority is given. | D | Int 32 |
Volume control | f true, the volume of played audio can be adjusted at runtime. If false, it can improve temporal precision the playback. | D | Boolean |
Balance Control | f true, the stereophonic balance of played audio can be adjusted at runtime. If false, it can improve temporal precision of the playback. | D | Boolean |
Design-time info |
Device Info | Information about capacities of the currently selected sound device. Click to expand all sub-fields. | D | Struct |
Buffer Info | Information about the sound buffer created for the currently selected audio clip. Click to expand all sub-fields. | D | Struct |
Playback |
Volume | Defines the volume of the audio playback, in percentages, from 0 (ground) to 100 (full) | D,R | Int32 |
Balance | Defines the stereophonic balance of the audio playback, from 100 (most left) to 100 (most right) | D,R | Int32 |
Start position | Defines the start position of the audio playback in percentages (0..100) to the total duration of the currently selected audio clip. | ,R | Double |
Position | The current playback position in percentages (0..100) to the total duration of the currently played audio. The property can be used only at runtime. | D,R | Double |
Is Playing | Indicates if the element is currently playing an audio. Changing this property at runtime results in toggling between the play/pause states. | R | Boolean |
3D Audio |
Enable 3D | If true, it turns on the 3D audio effect for the playback (if supported by the selected sound device) | Boolean |
Listener Position | The current 3D position of the virtual listener relatively to the fixed sound source in (0,0,0). Values are in the distance units. | D,R | cl3DVector
(fields: X,Y,Z) |
Front Heading | The current 3D orientation of the front of the virtual listener relatively to the sound source in (0,0,0). Values are in the distance units. | D,R | cl3DVector
(fields: X,Y,Z) |
Top Heading | The current 3D orientation of the top of the virtual listener relatively to the sound source in (0,0,0). Values are in the distance units. | D,R | cl3DVector
(fields: X,Y,Z) |
Distance Factor | Number of meters in the distance unit | D,R | float |
Doppler Factor | The Doppler factor that has a range of 0.0 (no Doppler effects) to 10.0 (ten times the Doppler effects found in the real world) | D,R | float |
Rolloff Factor | Determines the rate of the sound attenuation over distance. Has a range of 0.0 (no rolloff) to 10.0 (ten times the rolloff found in the real world). | D,R | float |
Listener's velocity | Listener's velocity that is used for generation of the Doppler effect, in the distance units per second | D,R | float |
Runtime info |
Start Time | If [Monitor Playback] property is true, this property stores the actual event time when the last playback started. Indicates the actual playback startup latency in ms if the "Once" playback mode is chosen. | R, Read-Only | UInt64 |
End Time | If [Monitor Playback] property is true, this property stores the actual event time when the last playback ended. [End Time]-[Start Time] indicates the actual duration of the last playback in ms. | R, Read-Only | UInt64 |
Was triggered | If [Monitor Playback] property is true, this property indicates if the element has been triggered at least once since activation of the parent event. The triggering occurs each time when the playback ends. | R, Read-Only | Boolean |