- addBus
void addBus(long at_position)
Adds a bus at at_position.
- addBusEffect
void addBusEffect(long bus_idx, AudioEffect effect, long at_position)
Adds an AudioEffect effect to the bus bus_idx at at_position.
- captureGetDevice
String captureGetDevice()
- captureGetDeviceList
Array captureGetDeviceList()
- captureSetDevice
void captureSetDevice(StringArg0 name)
- generateBusLayout
Ref!AudioBusLayout generateBusLayout()
- getBusCount
long getBusCount()
Returns the number of available busses.
- getBusEffect
Ref!AudioEffect getBusEffect(long bus_idx, long effect_idx)
Returns the AudioEffect at position effect_idx in bus bus_idx.
- getBusEffectCount
long getBusEffectCount(long bus_idx)
Returns the number of effects on the bus at bus_idx.
- getBusIndex
long getBusIndex(StringArg0 bus_name)
Returns the index of the bus with the name bus_name.
- getBusName
String getBusName(long bus_idx)
Returns the name of the bus with the index bus_idx.
- getBusPeakVolumeLeftDb
double getBusPeakVolumeLeftDb(long bus_idx, long channel)
Returns the peak volume of the left speaker at bus index bus_idx and channel index channel.
- getBusPeakVolumeRightDb
double getBusPeakVolumeRightDb(long bus_idx, long channel)
Returns the peak volume of the right speaker at bus index bus_idx and channel index channel.
- getBusSend
String getBusSend(long bus_idx)
Returns the name of the bus that the bus at index bus_idx sends to.
- getBusVolumeDb
double getBusVolumeDb(long bus_idx)
Returns the volume of the bus at index bus_idx in dB.
- getDevice
String getDevice()
- getDeviceList
Array getDeviceList()
- getMixRate
double getMixRate()
Returns the sample rate at the output of the audioserver.
- getSpeakerMode
AudioServer.SpeakerMode getSpeakerMode()
Returns the speaker configuration.
- isBusBypassingEffects
bool isBusBypassingEffects(long bus_idx)
If true the bus at index bus_idx is bypassing effects.
- isBusEffectEnabled
bool isBusEffectEnabled(long bus_idx, long effect_idx)
If true the effect at index effect_idx on the bus at index bus_idx is enabled.
- isBusMute
bool isBusMute(long bus_idx)
If true the bus at index bus_idx is muted.
- isBusSolo
bool isBusSolo(long bus_idx)
If true the bus at index bus_idx is in solo mode.
- lock
void lock()
Locks the audio drivers mainloop. Remember to unlock it afterwards.
- moveBus
void moveBus(long index, long to_index)
Moves the bus from index index to index to_index.
- opAssign
AudioServerSingleton opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(AudioServerSingleton other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeBus
void removeBus(long index)
Removes the bus at index index.
- removeBusEffect
void removeBusEffect(long bus_idx, long effect_idx)
Removes the effect at index effect_idx from the bus at index bus_idx.
- setBusBypassEffects
void setBusBypassEffects(long bus_idx, bool enable)
If true the bus at index bus_idx is bypassing effects.
- setBusCount
void setBusCount(long amount)
Adds and removes busses to make the number of busses match amount.
- setBusEffectEnabled
void setBusEffectEnabled(long bus_idx, long effect_idx, bool enabled)
If true the effect at index effect_idx on the bus at index bus_idx is enabled.
- setBusLayout
void setBusLayout(AudioBusLayout bus_layout)
- setBusMute
void setBusMute(long bus_idx, bool enable)
If true the bus at index bus_idx is muted.
- setBusName
void setBusName(long bus_idx, StringArg1 name)
Sets the name of the bus at index bus_idx to name.
- setBusSend
void setBusSend(long bus_idx, StringArg1 send)
Connects the output of the bus at bus_idx to the bus named send.
- setBusSolo
void setBusSolo(long bus_idx, bool enable)
If true the bus at index bus_idx is in solo mode.
- setBusVolumeDb
void setBusVolumeDb(long bus_idx, double volume_db)
Sets the volume of the bus at index bus_idx to volume_db.
- setDevice
void setDevice(StringArg0 device)
- swapBusEffects
void swapBusEffects(long bus_idx, long effect_idx, long by_effect_idx)
Swaps the position of two effects in bus bus_idx.
- unlock
void unlock()
Unlocks the audiodriver's main loop. After locking it always unlock it.
Server interface for low level audio access.
AudioServer is a low level server interface for audio access. It is in charge of creating sample data (playable audio) as well as its playback via a voice interface.