|
||||||||||
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 adapts 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 |
setSampleRate(float sampleRate)
|
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 AudioServer
public void stop()
AudioServer
stop
in interface AudioServer
public void setClient(AudioClient client)
AudioServer
setClient
in interface AudioServer
public boolean isRunning()
AudioServer
isRunning
in interface AudioServer
public float getLoad()
getLoad
in interface AudioServer
public void setEnabled(boolean enable)
AudioClient
setEnabled
in interface AudioClient
public void work(int nFrames)
work
in interface AudioClient
nFrames
- the number of frames to be processedpublic void run()
run
in interface java.lang.Runnable
public AudioBuffer createAudioBuffer(java.lang.String name)
createAudioBuffer
in interface AudioServer
public java.util.List<java.lang.String> getAvailableOutputNames()
getAvailableOutputNames
in interface AudioServer
public 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 AudioServer
java.lang.Exception
public IOAudioProcess openAudioInput(java.lang.String name, java.lang.String label) throws java.lang.Exception
AudioServer
openAudioInput
in interface AudioServer
java.lang.Exception
public void closeAudioOutput(IOAudioProcess output)
closeAudioOutput
in interface AudioServer
public void closeAudioInput(IOAudioProcess input)
closeAudioInput
in interface AudioServer
public float getSampleRate()
getSampleRate
in interface AudioServer
public void setSampleRate(float sampleRate)
public int getInputLatencyFrames()
getInputLatencyFrames
in interface AudioServer
public int getOutputLatencyFrames()
getOutputLatencyFrames
in interface AudioServer
public int getTotalLatencyFrames()
getTotalLatencyFrames
in interface AudioServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |