class_audioserver.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioServer.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioServer:
  6. AudioServer
  7. ===========
  8. **Inherits:** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Server interface for low level audio access.
  13. Methods
  14. -------
  15. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`add_bus<class_AudioServer_method_add_bus>` **(** :ref:`int<class_int>` at_position=-1 **)** |
  17. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`add_bus_effect<class_AudioServer_method_add_bus_effect>` **(** :ref:`int<class_int>` bus_idx, :ref:`AudioEffect<class_AudioEffect>` effect, :ref:`int<class_int>` at_position=-1 **)** |
  19. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`String<class_String>` | :ref:`capture_get_device<class_AudioServer_method_capture_get_device>` **(** **)** |
  21. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Array<class_Array>` | :ref:`capture_get_device_list<class_AudioServer_method_capture_get_device_list>` **(** **)** |
  23. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`capture_set_device<class_AudioServer_method_capture_set_device>` **(** :ref:`String<class_String>` name **)** |
  25. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`AudioBusLayout<class_AudioBusLayout>` | :ref:`generate_bus_layout<class_AudioServer_method_generate_bus_layout>` **(** **)** const |
  27. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`get_bus_channels<class_AudioServer_method_get_bus_channels>` **(** :ref:`int<class_int>` bus_idx **)** const |
  29. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`int<class_int>` | :ref:`get_bus_count<class_AudioServer_method_get_bus_count>` **(** **)** const |
  31. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`AudioEffect<class_AudioEffect>` | :ref:`get_bus_effect<class_AudioServer_method_get_bus_effect>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx **)** |
  33. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`int<class_int>` | :ref:`get_bus_effect_count<class_AudioServer_method_get_bus_effect_count>` **(** :ref:`int<class_int>` bus_idx **)** |
  35. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`AudioEffectInstance<class_AudioEffectInstance>` | :ref:`get_bus_effect_instance<class_AudioServer_method_get_bus_effect_instance>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx, :ref:`int<class_int>` channel=0 **)** |
  37. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`int<class_int>` | :ref:`get_bus_index<class_AudioServer_method_get_bus_index>` **(** :ref:`String<class_String>` bus_name **)** const |
  39. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`String<class_String>` | :ref:`get_bus_name<class_AudioServer_method_get_bus_name>` **(** :ref:`int<class_int>` bus_idx **)** const |
  41. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`float<class_float>` | :ref:`get_bus_peak_volume_left_db<class_AudioServer_method_get_bus_peak_volume_left_db>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` channel **)** const |
  43. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`float<class_float>` | :ref:`get_bus_peak_volume_right_db<class_AudioServer_method_get_bus_peak_volume_right_db>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` channel **)** const |
  45. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`String<class_String>` | :ref:`get_bus_send<class_AudioServer_method_get_bus_send>` **(** :ref:`int<class_int>` bus_idx **)** const |
  47. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`get_bus_volume_db<class_AudioServer_method_get_bus_volume_db>` **(** :ref:`int<class_int>` bus_idx **)** const |
  49. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`String<class_String>` | :ref:`get_device<class_AudioServer_method_get_device>` **(** **)** |
  51. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`Array<class_Array>` | :ref:`get_device_list<class_AudioServer_method_get_device_list>` **(** **)** |
  53. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`float<class_float>` | :ref:`get_mix_rate<class_AudioServer_method_get_mix_rate>` **(** **)** const |
  55. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`SpeakerMode<enum_AudioServer_SpeakerMode>` | :ref:`get_speaker_mode<class_AudioServer_method_get_speaker_mode>` **(** **)** const |
  57. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`bool<class_bool>` | :ref:`is_bus_bypassing_effects<class_AudioServer_method_is_bus_bypassing_effects>` **(** :ref:`int<class_int>` bus_idx **)** const |
  59. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`bool<class_bool>` | :ref:`is_bus_effect_enabled<class_AudioServer_method_is_bus_effect_enabled>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx **)** const |
  61. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`bool<class_bool>` | :ref:`is_bus_mute<class_AudioServer_method_is_bus_mute>` **(** :ref:`int<class_int>` bus_idx **)** const |
  63. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`bool<class_bool>` | :ref:`is_bus_solo<class_AudioServer_method_is_bus_solo>` **(** :ref:`int<class_int>` bus_idx **)** const |
  65. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | void | :ref:`lock<class_AudioServer_method_lock>` **(** **)** |
  67. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | void | :ref:`move_bus<class_AudioServer_method_move_bus>` **(** :ref:`int<class_int>` index, :ref:`int<class_int>` to_index **)** |
  69. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | void | :ref:`remove_bus<class_AudioServer_method_remove_bus>` **(** :ref:`int<class_int>` index **)** |
  71. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | void | :ref:`remove_bus_effect<class_AudioServer_method_remove_bus_effect>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx **)** |
  73. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | void | :ref:`set_bus_bypass_effects<class_AudioServer_method_set_bus_bypass_effects>` **(** :ref:`int<class_int>` bus_idx, :ref:`bool<class_bool>` enable **)** |
  75. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | void | :ref:`set_bus_count<class_AudioServer_method_set_bus_count>` **(** :ref:`int<class_int>` amount **)** |
  77. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | void | :ref:`set_bus_effect_enabled<class_AudioServer_method_set_bus_effect_enabled>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx, :ref:`bool<class_bool>` enabled **)** |
  79. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | void | :ref:`set_bus_layout<class_AudioServer_method_set_bus_layout>` **(** :ref:`AudioBusLayout<class_AudioBusLayout>` bus_layout **)** |
  81. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | void | :ref:`set_bus_mute<class_AudioServer_method_set_bus_mute>` **(** :ref:`int<class_int>` bus_idx, :ref:`bool<class_bool>` enable **)** |
  83. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | void | :ref:`set_bus_name<class_AudioServer_method_set_bus_name>` **(** :ref:`int<class_int>` bus_idx, :ref:`String<class_String>` name **)** |
  85. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | void | :ref:`set_bus_send<class_AudioServer_method_set_bus_send>` **(** :ref:`int<class_int>` bus_idx, :ref:`String<class_String>` send **)** |
  87. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | void | :ref:`set_bus_solo<class_AudioServer_method_set_bus_solo>` **(** :ref:`int<class_int>` bus_idx, :ref:`bool<class_bool>` enable **)** |
  89. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | void | :ref:`set_bus_volume_db<class_AudioServer_method_set_bus_volume_db>` **(** :ref:`int<class_int>` bus_idx, :ref:`float<class_float>` volume_db **)** |
  91. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | void | :ref:`set_device<class_AudioServer_method_set_device>` **(** :ref:`String<class_String>` device **)** |
  93. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | void | :ref:`swap_bus_effects<class_AudioServer_method_swap_bus_effects>` **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx, :ref:`int<class_int>` by_effect_idx **)** |
  95. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | void | :ref:`unlock<class_AudioServer_method_unlock>` **(** **)** |
  97. +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. Signals
  99. -------
  100. .. _class_AudioServer_signal_bus_layout_changed:
  101. - **bus_layout_changed** **(** **)**
  102. Emitted when the :ref:`AudioBusLayout<class_AudioBusLayout>` changes.
  103. Enumerations
  104. ------------
  105. .. _enum_AudioServer_SpeakerMode:
  106. .. _class_AudioServer_constant_SPEAKER_MODE_STEREO:
  107. .. _class_AudioServer_constant_SPEAKER_SURROUND_31:
  108. .. _class_AudioServer_constant_SPEAKER_SURROUND_51:
  109. .. _class_AudioServer_constant_SPEAKER_SURROUND_71:
  110. enum **SpeakerMode**:
  111. - **SPEAKER_MODE_STEREO** = **0** --- Two or fewer speakers are detected.
  112. - **SPEAKER_SURROUND_31** = **1**
  113. - **SPEAKER_SURROUND_51** = **2** --- A 5.1 channel surround setup detected.
  114. - **SPEAKER_SURROUND_71** = **3** --- A 7.1 channel surround setup detected.
  115. Description
  116. -----------
  117. 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.
  118. Tutorials
  119. ---------
  120. - :doc:`../tutorials/audio/audio_buses`
  121. Method Descriptions
  122. -------------------
  123. .. _class_AudioServer_method_add_bus:
  124. - void **add_bus** **(** :ref:`int<class_int>` at_position=-1 **)**
  125. Adds a bus at ``at_position``.
  126. ----
  127. .. _class_AudioServer_method_add_bus_effect:
  128. - void **add_bus_effect** **(** :ref:`int<class_int>` bus_idx, :ref:`AudioEffect<class_AudioEffect>` effect, :ref:`int<class_int>` at_position=-1 **)**
  129. Adds an :ref:`AudioEffect<class_AudioEffect>` effect to the bus ``bus_idx`` at ``at_position``.
  130. ----
  131. .. _class_AudioServer_method_capture_get_device:
  132. - :ref:`String<class_String>` **capture_get_device** **(** **)**
  133. ----
  134. .. _class_AudioServer_method_capture_get_device_list:
  135. - :ref:`Array<class_Array>` **capture_get_device_list** **(** **)**
  136. ----
  137. .. _class_AudioServer_method_capture_set_device:
  138. - void **capture_set_device** **(** :ref:`String<class_String>` name **)**
  139. ----
  140. .. _class_AudioServer_method_generate_bus_layout:
  141. - :ref:`AudioBusLayout<class_AudioBusLayout>` **generate_bus_layout** **(** **)** const
  142. Generates an :ref:`AudioBusLayout<class_AudioBusLayout>` using the available buses and effects.
  143. ----
  144. .. _class_AudioServer_method_get_bus_channels:
  145. - :ref:`int<class_int>` **get_bus_channels** **(** :ref:`int<class_int>` bus_idx **)** const
  146. Returns the amount of channels of the bus at index ``bus_idx``.
  147. ----
  148. .. _class_AudioServer_method_get_bus_count:
  149. - :ref:`int<class_int>` **get_bus_count** **(** **)** const
  150. Returns the number of available buses.
  151. ----
  152. .. _class_AudioServer_method_get_bus_effect:
  153. - :ref:`AudioEffect<class_AudioEffect>` **get_bus_effect** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx **)**
  154. Returns the :ref:`AudioEffect<class_AudioEffect>` at position ``effect_idx`` in bus ``bus_idx``.
  155. ----
  156. .. _class_AudioServer_method_get_bus_effect_count:
  157. - :ref:`int<class_int>` **get_bus_effect_count** **(** :ref:`int<class_int>` bus_idx **)**
  158. Returns the number of effects on the bus at ``bus_idx``.
  159. ----
  160. .. _class_AudioServer_method_get_bus_effect_instance:
  161. - :ref:`AudioEffectInstance<class_AudioEffectInstance>` **get_bus_effect_instance** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx, :ref:`int<class_int>` channel=0 **)**
  162. ----
  163. .. _class_AudioServer_method_get_bus_index:
  164. - :ref:`int<class_int>` **get_bus_index** **(** :ref:`String<class_String>` bus_name **)** const
  165. Returns the index of the bus with the name ``bus_name``.
  166. ----
  167. .. _class_AudioServer_method_get_bus_name:
  168. - :ref:`String<class_String>` **get_bus_name** **(** :ref:`int<class_int>` bus_idx **)** const
  169. Returns the name of the bus with the index ``bus_idx``.
  170. ----
  171. .. _class_AudioServer_method_get_bus_peak_volume_left_db:
  172. - :ref:`float<class_float>` **get_bus_peak_volume_left_db** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` channel **)** const
  173. Returns the peak volume of the left speaker at bus index ``bus_idx`` and channel index ``channel``.
  174. ----
  175. .. _class_AudioServer_method_get_bus_peak_volume_right_db:
  176. - :ref:`float<class_float>` **get_bus_peak_volume_right_db** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` channel **)** const
  177. Returns the peak volume of the right speaker at bus index ``bus_idx`` and channel index ``channel``.
  178. ----
  179. .. _class_AudioServer_method_get_bus_send:
  180. - :ref:`String<class_String>` **get_bus_send** **(** :ref:`int<class_int>` bus_idx **)** const
  181. Returns the name of the bus that the bus at index ``bus_idx`` sends to.
  182. ----
  183. .. _class_AudioServer_method_get_bus_volume_db:
  184. - :ref:`float<class_float>` **get_bus_volume_db** **(** :ref:`int<class_int>` bus_idx **)** const
  185. Returns the volume of the bus at index ``bus_idx`` in dB.
  186. ----
  187. .. _class_AudioServer_method_get_device:
  188. - :ref:`String<class_String>` **get_device** **(** **)**
  189. ----
  190. .. _class_AudioServer_method_get_device_list:
  191. - :ref:`Array<class_Array>` **get_device_list** **(** **)**
  192. ----
  193. .. _class_AudioServer_method_get_mix_rate:
  194. - :ref:`float<class_float>` **get_mix_rate** **(** **)** const
  195. Returns the sample rate at the output of the audioserver.
  196. ----
  197. .. _class_AudioServer_method_get_speaker_mode:
  198. - :ref:`SpeakerMode<enum_AudioServer_SpeakerMode>` **get_speaker_mode** **(** **)** const
  199. Returns the speaker configuration.
  200. ----
  201. .. _class_AudioServer_method_is_bus_bypassing_effects:
  202. - :ref:`bool<class_bool>` **is_bus_bypassing_effects** **(** :ref:`int<class_int>` bus_idx **)** const
  203. If ``true``, the bus at index ``bus_idx`` is bypassing effects.
  204. ----
  205. .. _class_AudioServer_method_is_bus_effect_enabled:
  206. - :ref:`bool<class_bool>` **is_bus_effect_enabled** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx **)** const
  207. If ``true``, the effect at index ``effect_idx`` on the bus at index ``bus_idx`` is enabled.
  208. ----
  209. .. _class_AudioServer_method_is_bus_mute:
  210. - :ref:`bool<class_bool>` **is_bus_mute** **(** :ref:`int<class_int>` bus_idx **)** const
  211. If ``true``, the bus at index ``bus_idx`` is muted.
  212. ----
  213. .. _class_AudioServer_method_is_bus_solo:
  214. - :ref:`bool<class_bool>` **is_bus_solo** **(** :ref:`int<class_int>` bus_idx **)** const
  215. If ``true``, the bus at index ``bus_idx`` is in solo mode.
  216. ----
  217. .. _class_AudioServer_method_lock:
  218. - void **lock** **(** **)**
  219. Locks the audio drivers mainloop. Remember to unlock it afterwards.
  220. ----
  221. .. _class_AudioServer_method_move_bus:
  222. - void **move_bus** **(** :ref:`int<class_int>` index, :ref:`int<class_int>` to_index **)**
  223. Moves the bus from index ``index`` to index ``to_index``.
  224. ----
  225. .. _class_AudioServer_method_remove_bus:
  226. - void **remove_bus** **(** :ref:`int<class_int>` index **)**
  227. Removes the bus at index ``index``.
  228. ----
  229. .. _class_AudioServer_method_remove_bus_effect:
  230. - void **remove_bus_effect** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx **)**
  231. Removes the effect at index ``effect_idx`` from the bus at index ``bus_idx``.
  232. ----
  233. .. _class_AudioServer_method_set_bus_bypass_effects:
  234. - void **set_bus_bypass_effects** **(** :ref:`int<class_int>` bus_idx, :ref:`bool<class_bool>` enable **)**
  235. If ``true``, the bus at index ``bus_idx`` is bypassing effects.
  236. ----
  237. .. _class_AudioServer_method_set_bus_count:
  238. - void **set_bus_count** **(** :ref:`int<class_int>` amount **)**
  239. Adds and removes buses to make the number of buses match ``amount``.
  240. ----
  241. .. _class_AudioServer_method_set_bus_effect_enabled:
  242. - void **set_bus_effect_enabled** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx, :ref:`bool<class_bool>` enabled **)**
  243. If ``true``, the effect at index ``effect_idx`` on the bus at index ``bus_idx`` is enabled.
  244. ----
  245. .. _class_AudioServer_method_set_bus_layout:
  246. - void **set_bus_layout** **(** :ref:`AudioBusLayout<class_AudioBusLayout>` bus_layout **)**
  247. Overwrites the currently used :ref:`AudioBusLayout<class_AudioBusLayout>`.
  248. ----
  249. .. _class_AudioServer_method_set_bus_mute:
  250. - void **set_bus_mute** **(** :ref:`int<class_int>` bus_idx, :ref:`bool<class_bool>` enable **)**
  251. If ``true``, the bus at index ``bus_idx`` is muted.
  252. ----
  253. .. _class_AudioServer_method_set_bus_name:
  254. - void **set_bus_name** **(** :ref:`int<class_int>` bus_idx, :ref:`String<class_String>` name **)**
  255. Sets the name of the bus at index ``bus_idx`` to ``name``.
  256. ----
  257. .. _class_AudioServer_method_set_bus_send:
  258. - void **set_bus_send** **(** :ref:`int<class_int>` bus_idx, :ref:`String<class_String>` send **)**
  259. Connects the output of the bus at ``bus_idx`` to the bus named ``send``.
  260. ----
  261. .. _class_AudioServer_method_set_bus_solo:
  262. - void **set_bus_solo** **(** :ref:`int<class_int>` bus_idx, :ref:`bool<class_bool>` enable **)**
  263. If ``true``, the bus at index ``bus_idx`` is in solo mode.
  264. ----
  265. .. _class_AudioServer_method_set_bus_volume_db:
  266. - void **set_bus_volume_db** **(** :ref:`int<class_int>` bus_idx, :ref:`float<class_float>` volume_db **)**
  267. Sets the volume of the bus at index ``bus_idx`` to ``volume_db``.
  268. ----
  269. .. _class_AudioServer_method_set_device:
  270. - void **set_device** **(** :ref:`String<class_String>` device **)**
  271. ----
  272. .. _class_AudioServer_method_swap_bus_effects:
  273. - void **swap_bus_effects** **(** :ref:`int<class_int>` bus_idx, :ref:`int<class_int>` effect_idx, :ref:`int<class_int>` by_effect_idx **)**
  274. Swaps the position of two effects in bus ``bus_idx``.
  275. ----
  276. .. _class_AudioServer_method_unlock:
  277. - void **unlock** **(** **)**
  278. Unlocks the audiodriver's main loop. After locking it always unlock it.