public class SNAudioController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
recordingConcurrently
The recording concurrently.
|
Constructor and Description |
---|
SNAudioController()
Instantiates a new SN audio controller.
|
SNAudioController(java.util.logging.Logger log)
Instantiates a new SN audio controller.
|
SNAudioController(java.util.logging.Logger log,
IAudioItem audioItem)
Instantiates a new SN audio controller.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getAudioFile()
Gets the audio file.
|
int |
getMaxRecordingTime()
Gets the max recording time.
|
boolean |
hasAudioBeenSet()
Checks for audio been set.
|
void |
resetAudioRecording()
Reset audio recording.
|
void |
setAudioSource(com.jme3.asset.AssetManager assetManager,
java.lang.String fileLocation)
Sets the audio source.
|
void |
setAudioSource(java.io.File f)
Sets the audio source.
|
void |
setAudioSource(java.io.File f,
java.lang.String s)
Sets the audio source.
|
void |
setAudioSource(java.lang.String recordingAddress)
Sets the audio source.
|
void |
setMaxRecordingTime(int maxRecordingTime)
Sets the max recording time.
|
void |
startAudioCapture()
Start audio capture.
|
void |
startAudioPlayBack()
Start audio play back.
|
void |
stopAudioCapture(boolean success)
Stop audio capture.
|
void |
stopAudioPlayBack()
Stop audio play back.
|
public static boolean recordingConcurrently
public SNAudioController()
public SNAudioController(java.util.logging.Logger log)
log
- the logpublic SNAudioController(java.util.logging.Logger log, IAudioItem audioItem)
log
- the logaudioItem
- the audio itempublic java.io.File getAudioFile()
public int getMaxRecordingTime()
public boolean hasAudioBeenSet()
public void resetAudioRecording()
public void setAudioSource(com.jme3.asset.AssetManager assetManager, java.lang.String fileLocation)
assetManager
- the asset managerfileLocation
- the file locationpublic void setAudioSource(java.io.File f)
f
- the new audio sourcepublic void setAudioSource(java.io.File f, java.lang.String s)
f
- the fs
- the spublic void setAudioSource(java.lang.String recordingAddress)
recordingAddress
- the new audio sourcepublic void setMaxRecordingTime(int maxRecordingTime)
maxRecordingTime
- the new max recording timepublic void startAudioCapture()
public void startAudioPlayBack()
public void stopAudioCapture(boolean success)
success
- the successpublic void stopAudioPlayBack()