immersive-home/docs/reference/lib--globals--audio_player.md

48 lines
1.2 KiB
Markdown
Raw Normal View History

2024-03-16 19:45:43 +02:00
# AudioPlayer
**Inherits:** [AudioStreamPlayer](https://docs.godotengine.org/de/4.x/classes/class_audiostreamplayer.html)
2024-03-16 19:45:43 +02:00
## Methods
| Returns | Name |
| ------- | ---------------------------------------------------------------------------------------------------------------- |
| void | [_ready](#-ready) ( ) |
| void | [play_effect](#play-effect) ( sound: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) |
2024-03-17 01:14:31 +02:00
## Constants
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
### click_sound = `<Object>` {#const-click-sound}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### spawn_sound = `<Object>` {#const-spawn-sound}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### open_menu = `<Object>` {#const-open-menu}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### close_menu = `<Object>` {#const-close-menu}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
2024-03-16 19:45:43 +02:00
## Method Descriptions
2024-03-17 01:14:31 +02:00
### _ready ( ) -> void {#-ready}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### play_effect (sound: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) -> void {#play-effect}
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
Plays a given sound effect