Drag[en]gine Script Module DragonScript
1.23
|
Definition of a synthesizer. More...
Public Member Functions | |
void | addController (SDController controller) |
Add controller. More... | |
void | addLink (SDLink link) |
Add link. More... | |
void | addSource (SDSource source) |
Add source. More... | |
void | buildSynthesizer (Synthesizer synthesizer) |
Build synthesizer. More... | |
void | debug (Console console) |
int | getBytesPerSample () |
Bytes per sample. More... | |
int | getChannelCount () |
Channel count. More... | |
SDController | getControllerAt (int position) |
Controller at position. More... | |
int | getControllerCount () |
Number of controllers. More... | |
SDLink | getLinkAt (int position) |
Link at position. More... | |
int | getLinkCount () |
Number of links. More... | |
String | getPathDirectory () |
Path to directory the synthesizer file is located in. More... | |
String | getPathFile () |
Path the synthesizer has been loaded from. More... | |
int | getSampleCount () |
Number of samples to create. More... | |
int | getSampleRate () |
Sample rate. More... | |
SDSource | getSourceAt (int position) |
Source at position. More... | |
int | getSourceCount () |
Number of sources. More... | |
SynthesizerDefinition | new (String pathFile) |
Create synthesizer definition. More... | |
void | setBytesPerSample (int bytesPerSample) |
Set bytes per sample. More... | |
void | setChannelCount (int channelCount) |
Set channel count. More... | |
void | setSampleCount (int sampleCount) |
Set number of samples to create. More... | |
void | setSampleRate (int sampleRate) |
Set sample rate. More... | |
Definition of a synthesizer.
Once defined a synthesizer can be updated using the stored definition. Avoids storing real synthesizers as often multiple synthesizer definitions have to be loaded at the beginning of a gaming session.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.addController | ( | SDController | controller | ) |
Add controller.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.addLink | ( | SDLink | link | ) |
Add link.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.addSource | ( | SDSource | source | ) |
Add source.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.buildSynthesizer | ( | Synthesizer | synthesizer | ) |
Build synthesizer.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.debug | ( | Console | console | ) |
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getBytesPerSample | ( | ) |
Bytes per sample.
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getChannelCount | ( | ) |
Channel count.
SDController Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getControllerAt | ( | int | position | ) |
Controller at position.
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getControllerCount | ( | ) |
Number of controllers.
SDLink Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getLinkAt | ( | int | position | ) |
Link at position.
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getLinkCount | ( | ) |
Number of links.
String Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getPathDirectory | ( | ) |
Path to directory the synthesizer file is located in.
String Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getPathFile | ( | ) |
Path the synthesizer has been loaded from.
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getSampleCount | ( | ) |
Number of samples to create.
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getSampleRate | ( | ) |
Sample rate.
SDSource Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getSourceAt | ( | int | position | ) |
Source at position.
int Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.getSourceCount | ( | ) |
Number of sources.
SynthesizerDefinition Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.new | ( | String | pathFile | ) |
Create synthesizer definition.
pathFile | Absolute path the definition has been loaded from. |
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.setBytesPerSample | ( | int | bytesPerSample | ) |
Set bytes per sample.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.setChannelCount | ( | int | channelCount | ) |
Set channel count.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.setSampleCount | ( | int | sampleCount | ) |
Set number of samples to create.
void Dragengine.Audio.SynthesizerDefinition.SynthesizerDefinition.setSampleRate | ( | int | sampleRate | ) |
Set sample rate.