Difference between revisions of "Block Audio"
(→AUDIO_PLAY_FILE) |
|||
| Line 6: | Line 6: | ||
Plays audio file on given path | Plays audio file on given path | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 21: | Line 21: | ||
Plays http audio stream on given url | Plays http audio stream on given url | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 35: | Line 35: | ||
Stops actual playback | Stops actual playback | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|} | |} | ||
'''Example:'''<br> | '''Example:'''<br> | ||
| Line 45: | Line 45: | ||
Sets volume to left and right audio channel | Sets volume to left and right audio channel | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
Revision as of 12:12, 24 October 2018
Contents
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 | |


