Difference between revisions of "Block Audio"

From IPLOG
Jump to: navigation, search
(Created page with "== Audio library == === Playback === ==== AUDIO_PLAY_FILE ==== Plays audio file on given path {| class="wikitable" | colspan="5" |#Asynchronous operations|Asynchronous int...")
 
Line 14: Line 14:
 
|file (with whole path) to play  
 
|file (with whole path) to play  
 
|}
 
|}
 +
'''Example:'''<br>
 +
[[File:Block Audio play File.png]]
  
 
==== AUDIO_PLAY_HTTP ====
 
==== AUDIO_PLAY_HTTP ====
Line 26: Line 28:
 
|url to audio stream
 
|url to audio stream
 
|}
 
|}
 +
'''Example:'''<br>
 +
[[File:Block Audio play HTTP.png]]
  
 
==== AUDIO_STOP ====
 
==== AUDIO_STOP ====
Line 32: Line 36:
 
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
 
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
 
|}
 
|}
 +
'''Example:'''<br>
 +
[[File:Block Audio stop.png]]
  
 
=== Configuration ===
 
=== Configuration ===
Line 52: Line 58:
 
|percent volume for right channel
 
|percent volume for right channel
 
|}
 
|}
 +
'''Example:'''<br>
 +
[[File:Block Audio Volume configuration .png]]<br>
 +
Note: Volume set to 50% in the example.

Revision as of 14:59, 5 October 2018

Audio library

Playback

AUDIO_PLAY_FILE

Plays audio file on given path

Asynchronous interface
in FILENAME string file (with whole path) to play

Example:
Block Audio play File.png

AUDIO_PLAY_HTTP

Plays http audio stream on given url

Asynchronous interface
in URL string url to audio stream

Example:
Block Audio play HTTP.png

AUDIO_STOP

Stops actual playback

Asynchronous interface

Example:
Block Audio stop.png

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

Example:
Block Audio Volume configuration .png
Note: Volume set to 50% in the example.