|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.audio.server.AbstractAudioServerDecorator
public abstract class AbstractAudioServerDecorator
This class is provided so that classes that want to decorate some AudioServer methods don't have to delegate all methods to the decorated AudioServer.
| Field Summary |
|---|
| Fields inherited from interface uk.org.toot.audio.server.AudioServer |
|---|
THREAD_NAME |
| Constructor Summary | |
|---|---|
AbstractAudioServerDecorator(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 |
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 |
setClient(AudioClient client)
Sets the single AudioClient. |
void |
start()
Requests that the server starts if possible, otherwise actual start will be deferred until it is possible. |
void |
stop()
Stops the server. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAudioServerDecorator(AudioServer server)
| Method Detail |
|---|
public IOAudioProcess openAudioInput(java.lang.String name,
java.lang.String label)
throws java.lang.Exception
AudioServer
openAudioInput in interface AudioServerjava.lang.Exception
public IOAudioProcess openAudioOutput(java.lang.String name,
java.lang.String label)
throws java.lang.Exception
AudioServer
openAudioOutput in interface AudioServerjava.lang.Exceptionpublic void closeAudioInput(IOAudioProcess input)
closeAudioInput in interface AudioServerpublic void closeAudioOutput(IOAudioProcess output)
closeAudioOutput in interface AudioServerpublic java.util.List<java.lang.String> getAvailableInputNames()
getAvailableInputNames in interface AudioServerpublic java.util.List<java.lang.String> getAvailableOutputNames()
getAvailableOutputNames in interface AudioServerpublic AudioBuffer createAudioBuffer(java.lang.String name)
createAudioBuffer in interface AudioServerpublic int getInputLatencyFrames()
getInputLatencyFrames in interface AudioServerpublic int getOutputLatencyFrames()
getOutputLatencyFrames in interface AudioServerpublic int getTotalLatencyFrames()
getTotalLatencyFrames in interface AudioServerpublic boolean isRunning()
AudioServer
isRunning in interface AudioServerpublic void setClient(AudioClient client)
AudioServer
setClient in interface AudioServerpublic void start()
AudioServer
start in interface AudioServerpublic void stop()
AudioServer
stop in interface AudioServerpublic float getSampleRate()
getSampleRate in interface AudioServerpublic float getLoad()
getLoad in interface AudioServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||