|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.audio.server.NonRealTimeAudioServer
public class NonRealTimeAudioServer
An AudioServer that decorates any other AudioServer to add a non-real-time capability.
| Field Summary |
|---|
| Fields inherited from interface uk.org.toot.audio.server.AudioServer |
|---|
THREAD_NAME |
| Constructor Summary | |
|---|---|
NonRealTimeAudioServer(AudioServer server)
|
|
| Method Summary | |
|---|---|
void |
closeAudioInput(IOAudioProcess input)
|
void |
closeAudioOutput(IOAudioProcess output)
|
AudioBuffer |
createAudioBuffer(java.lang.String name)
|
java.util.List<java.lang.String> |
getAvailableInputNames()
|
java.util.List<java.lang.String> |
getAvailableOutputNames()
|
int |
getInputLatencyFrames()
|
float |
getLoad()
|
int |
getOutputLatencyFrames()
|
float |
getSampleRate()
|
int |
getTotalLatencyFrames()
|
boolean |
isRealTime()
|
boolean |
isRunning()
Returns whether running. |
IOAudioProcess |
openAudioInput(java.lang.String name,
java.lang.String label)
Returns an AudioProcess backed by a hardware audio input line represented by 'name' and labelled 'label'. |
IOAudioProcess |
openAudioOutput(java.lang.String name,
java.lang.String label)
Returns an AudioProcess backed by a hardware audio output line represented by 'name' and labelled 'label'. |
void |
run()
Public as an implementation side-effect. |
void |
setClient(AudioClient client)
Sets the single AudioClient. |
void |
setEnabled(boolean enable)
When not enabled, work() may not be called and should be ignored if it is called. |
void |
setRealTime(boolean rt)
|
void |
start()
Requests that the server starts if possible, otherwise actual start will be deferred until it is possible. |
void |
stop()
Stops the server. |
void |
work(int nFrames)
Override this method to synchronise with non-real-time timing |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonRealTimeAudioServer(AudioServer server)
| Method Detail |
|---|
public void setRealTime(boolean rt)
public boolean isRealTime()
public void start()
AudioServer
start in interface AudioServerpublic void stop()
AudioServer
stop in interface AudioServerpublic void setClient(AudioClient client)
AudioServer
setClient in interface AudioServerpublic boolean isRunning()
AudioServer
isRunning in interface AudioServerpublic float getLoad()
getLoad in interface AudioServerpublic void setEnabled(boolean enable)
AudioClient
setEnabled in interface AudioClientpublic void work(int nFrames)
work in interface AudioClientnFrames - the number of frames to be processedpublic void run()
run in interface java.lang.Runnablepublic AudioBuffer createAudioBuffer(java.lang.String name)
createAudioBuffer in interface AudioServerpublic java.util.List<java.lang.String> getAvailableOutputNames()
getAvailableOutputNames in interface AudioServerpublic java.util.List<java.lang.String> getAvailableInputNames()
getAvailableInputNames in interface AudioServer
public IOAudioProcess openAudioOutput(java.lang.String name,
java.lang.String label)
throws java.lang.Exception
AudioServer
openAudioOutput in interface AudioServerjava.lang.Exception
public IOAudioProcess openAudioInput(java.lang.String name,
java.lang.String label)
throws java.lang.Exception
AudioServer
openAudioInput in interface AudioServerjava.lang.Exceptionpublic void closeAudioOutput(IOAudioProcess output)
closeAudioOutput in interface AudioServerpublic void closeAudioInput(IOAudioProcess input)
closeAudioInput in interface AudioServerpublic float getSampleRate()
getSampleRate in interface AudioServerpublic int getInputLatencyFrames()
getInputLatencyFrames in interface AudioServerpublic int getOutputLatencyFrames()
getOutputLatencyFrames in interface AudioServerpublic int getTotalLatencyFrames()
getTotalLatencyFrames in interface AudioServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||