mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-23 14:06:50 +01:00
21 lines
529 B
Markdown
21 lines
529 B
Markdown
|
# Audio Device Changer
|
||
|
|
||
|
This is a demo showing how the audio output device can be changed from Godot.
|
||
|
|
||
|
Language: GDScript
|
||
|
|
||
|
Renderer: GLES 2
|
||
|
|
||
|
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/525
|
||
|
|
||
|
## How does it work?
|
||
|
|
||
|
It uses the `set_device()` method in
|
||
|
[`AudioServer`](https://docs.godotengine.org/en/latest/classes/class_audioserver.html)
|
||
|
to change the audio device.
|
||
|
The list of devices is populated using `get_device_list()`.
|
||
|
|
||
|
## Screenshots
|
||
|
|
||
|
![Screenshot](screenshots/device_changer.png)
|