public interface ISound
Modifier and Type | Method and Description |
---|---|
void |
beep()
Beeps if beeps are allowed.
|
void |
beepOnConfirmation()
Beeps if confirmation beeps are allowed.
|
void |
beepOnEmptyTxtSearchRslt()
Beeps if empty text search result beeps are allowed.
|
void |
beepOnError()
Beeps if error beeps are allowed.
|
void |
beepOnInfo()
Beeps if input beeps are allowed.
|
void |
beepOnInput()
Beeps if input beeps are allowed.
|
void |
beepOnWarning()
Beeps if warning beeps are allowed.
|
boolean |
play(java.nio.file.Path file,
boolean wait)
Plays a sound file if voice notifications are allowed.
|
boolean |
play(java.lang.String name,
java.io.InputStream dataStream,
boolean wait)
Plays a sound if voice notifications are allowed.
|
void beep()
void beepOnError()
void beepOnWarning()
void beepOnConfirmation()
void beepOnInput()
void beepOnInfo()
void beepOnEmptyTxtSearchRslt()
boolean play(java.nio.file.Path file, boolean wait)
Supported file formats include MP3, WAV, AIFF, AU.
The sound will be played by a IJob
.
file
- sound file to be playedwait
- tells if have to wait the end of the play or return immediatelyboolean play(java.lang.String name, java.io.InputStream dataStream, boolean wait)
Supported stream formats include data stream of MP3, WAV, AIFF, AU.
The sound will be played by an IJob
. The dataStream
will be closed at the end of play.
name
- name of the sound to be playeddataStream
- data stream to read the sound data fromwait
- tells if have to wait the end of the play or return immediately
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.