virtualx-engine/doc
Juan Linietsky f18d408c08 Add AudioStreamPolyphonic to make it easier to play polyphonic sound from code
* This new audio stream allows to play multiple sounds and control them over time from code.
* It greatly simplifies tasks such as generative music (music generated from code) or audio.

This new type of stream was added with the goal of fixing audio blending in AnimationPlayer and AnimationTree, but can be used by others for their regular audio needs.

Does not fix anything currently, but should help implement #69758 properly.

Some demo code of how to use this:

```GDScript

var player = $SomeNode as AudioStreamPlayer
player.stream = AudioStreamPolyphonic.new()
var playback = player.get_stream_playback() as AudioStreamPlaybackPolyphonic
var id = playback.play_stream(preload("res://Clip1.ogg"))
await get_tree().create_timer(1).timeout
playback.set_stream_volume(id,-12) # Set volume to half after one second
await get_tree().create_timer(2).timeout
var id2 = playback.play_stream(preload("res://Clip2.ogg")) # 2 seconds later, start another clip
await get_tree().create_timer(1).timeout
playback.stop_stream(id) # 1 second later, kill the first clip
playback.set_stream_pitch_scale(id2,1.5) # Make the second clip go 50% faster

```
2023-01-22 16:22:45 +01:00
..
classes Add AudioStreamPolyphonic to make it easier to play polyphonic sound from code 2023-01-22 16:22:45 +01:00
tools fix conversion of csharp attributes in code blocks 2022-12-05 22:58:47 +01:00
translations i18n: Sync classref translations with Weblate (3.5 branch) 2023-01-20 12:32:06 +01:00
class.xsd 2D and 3D Skeleton modification docs, and small fixes. 2022-09-14 15:07:45 -07:00
Doxyfile
Makefile Fixes doc/Makefile fails if path contains spaces 2022-09-11 20:03:53 +09:00