Class Audio
The base class of all audio types
Constructor
Audio
-
driver
:String
Parameters
-
driver
StringThe driver to use for manipulating audio
- jecho.drivers.BUFFERED [ default ]
- jecho.drivers.UNBUFFERED
Properties
Float |
|
||||||
Integer |
|
||||||
Boolean |
|
||||||
Boolean |
|
||||||
Float |
|
-1 | is fully on the left |
0 | is on the center (default) |
+1 | is fully on the right |
pitch
Get / set the sound pitch within [0,~]
position
Get / set the audio playing position from 0
to 1
.
spectrum
Get the current sound spectrum
volume
Get / set the sound volume between 0 and 1.
waveform
Get the signal waveform
Method summary
void |
|
Promise |
|
static Promise |
( )
|
Audio |
|
void |
( )
|
void |
( )
|
void |
|
void |
( )
|