From 10269b74c84d15301bcb21ec0156f4b2b2457cb6 Mon Sep 17 00:00:00 2001 From: Grosskopf Date: Sat, 16 Sep 2017 23:12:52 +0200 Subject: [PATCH] Added Documentation of AudioStream --- doc/classes/AudioStreamOGGVorbis.xml | 3 +++ doc/classes/AudioStreamRandomPitch.xml | 4 ++++ doc/classes/AudioStreamSample.xml | 15 +++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/doc/classes/AudioStreamOGGVorbis.xml b/doc/classes/AudioStreamOGGVorbis.xml index fd9018764d3..679438b66b1 100644 --- a/doc/classes/AudioStreamOGGVorbis.xml +++ b/doc/classes/AudioStreamOGGVorbis.xml @@ -56,10 +56,13 @@ + Raw audio data. + If [code]true[/code], audio will loop continuously. Default value: [code]false[/code]. + If loop is [code]true[/code], loop starts from this position, in seconds. diff --git a/doc/classes/AudioStreamRandomPitch.xml b/doc/classes/AudioStreamRandomPitch.xml index 91856682e6d..1573a78d1fc 100644 --- a/doc/classes/AudioStreamRandomPitch.xml +++ b/doc/classes/AudioStreamRandomPitch.xml @@ -1,8 +1,10 @@ + Plays audio with random pitch tweaking. + Randomly varies pitch on each start. @@ -40,8 +42,10 @@ + The current [AudioStream]. + The intensity of random pitch variation. diff --git a/doc/classes/AudioStreamSample.xml b/doc/classes/AudioStreamSample.xml index 22b820aa7dc..7f7414e4d34 100644 --- a/doc/classes/AudioStreamSample.xml +++ b/doc/classes/AudioStreamSample.xml @@ -1,8 +1,10 @@ + Plays audio. + Plays audio, can loop. @@ -110,32 +112,45 @@ + Raw audio data. + Audio format. See FORMAT_* constants for values. + Loop start in bytes. + Loop end in bytes. + Loop mode. See LOOP_* constants for values. + The sample rate for mixing this audio. + If [code]true[/code], audio is stereo. Default value: [code]false[/code]. + Audio codec 8 bit. + Audio codec 16 bit. + Audio codec IMA ADPCM. + Audio does not loop. + Audio loops the data between loop_begin and loop_end playing forward only. + Audio loops the data between loop_begin and loop_end playing back and forth.