Difference between revisions of "Block Audio"
(→Audio library) |
|||
| Line 1: | Line 1: | ||
| + | == [[Libraries for IEC 61131-3|Back to Libraries]] == | ||
== Audio library == | == Audio library == | ||
Latest revision as of 07:24, 30 April 2020
Contents
Back to Libraries
Audio library
Playback
AUDIO_PLAY_FILE
Plays audio file on given path
| Asynchronous interface | ||||
| in | FILENAME | string | file (with whole path) to play | |
Example:

Note: plays abc.mp3 file in folder "home"
AUDIO_PLAY_HTTP
Plays http audio stream on given url
| Asynchronous interface | ||||
| in | URL | string | url to audio stream | |
AUDIO_STOP
Stops actual playback
| Asynchronous interface |
Configuration
AUDIO_VOLUME
Sets volume to left and right audio channel
| Asynchronous interface | ||||
| in | VOL_L | uint | percent volume for left channel | |
| in | VOL_R | uint | percent volume for right channel | |


