|
Drag[en]gine Script Module DragonScript 1.32.1
|
Definition of a synthesizer. More...
Public Member Functions | |
| void | addController (SDController controller) |
| Add controller. | |
| void | addLink (SDLink link) |
| Add link. | |
| void | addSource (SDSource source) |
| Add source. | |
| void | buildSynthesizer (Synthesizer synthesizer) |
| Build synthesizer. | |
| void | debug (Console console) |
| int | getBytesPerSample () |
| Bytes per sample. | |
| int | getChannelCount () |
| Channel count. | |
| SDController | getControllerAt (int position) |
| Controller at position. | |
| int | getControllerCount () |
| Number of controllers. | |
| SDLink | getLinkAt (int position) |
| Link at position. | |
| int | getLinkCount () |
| Number of links. | |
| String | getPathDirectory () |
| Path to directory the synthesizer file is located in. | |
| String | getPathFile () |
| Path the synthesizer has been loaded from. | |
| int | getSampleCount () |
| Number of samples to create. | |
| int | getSampleRate () |
| Sample rate. | |
| SDSource | getSourceAt (int position) |
| Source at position. | |
| int | getSourceCount () |
| Number of sources. | |
| SynthesizerDefinition | new (String pathFile) |
| Create synthesizer definition. | |
| void | setBytesPerSample (int bytesPerSample) |
| Set bytes per sample. | |
| void | setChannelCount (int channelCount) |
| Set channel count. | |
| void | setSampleCount (int sampleCount) |
| Set number of samples to create. | |
| void | setSampleRate (int sampleRate) |
| Set sample rate. | |
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.