Skip to content

Commit 1f78e11

Browse files
committed
create AudioStreamWithEffects
1 parent 0dd9178 commit 1f78e11

33 files changed

+758
-33
lines changed

doc/classes/AudioEffect.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Base class for audio effect resources.
55
</brief_description>
66
<description>
7-
The base [Resource] for every audio effect. In the editor, an audio effect can be added to the current bus layout through the Audio panel. At run-time, it is also possible to manipulate audio effects through [method AudioServer.add_bus_effect], [method AudioServer.remove_bus_effect], and [method AudioServer.get_bus_effect].
8-
When applied on a bus, an audio effect creates a corresponding [AudioEffectInstance]. The instance is directly responsible for manipulating the sound, based on the original audio effect's properties.
7+
The base [Resource] for every audio effect. In the editor, an audio effect can be added to the current bus layout through the Audio panel. At run-time, it is also possible to manipulate audio effects on buses through [method AudioServer.add_bus_effect], [method AudioServer.remove_bus_effect], and [method AudioServer.get_bus_effect]. Audio effects can also be added to an [AudioStreamWithEffects] to manipulate the sound of an individual audio stream.
8+
When applied on a bus, an audio effect creates a corresponding [AudioEffectInstance]. When applied on an [AudioStreamWithEffects], an [AudioEffectInstance] is created for each stream effect when the stream begins playback. An [AudioEffectInstance] is directly responsible for manipulating the sound, based on the original audio effect's properties.
99
</description>
1010
<tutorials>
1111
<link title="Audio buses">$DOCS_URL/tutorials/audio/audio_buses.html</link>
@@ -15,7 +15,7 @@
1515
<method name="_instantiate" qualifiers="virtual required">
1616
<return type="AudioEffectInstance" />
1717
<description>
18-
Override this method to customize the [AudioEffectInstance] created when this effect is applied on a bus in the editor's Audio panel, or through [method AudioServer.add_bus_effect].
18+
Override this method to customize the [AudioEffectInstance] created when this effect is applied on a bus in the editor's Audio panel, through [method AudioServer.add_bus_effect], or when the [AudioStreamWithEffects] this effect is placed on instantiates an [AudioStreamPlaybackWithEffects].
1919
[codeblock]
2020
extends AudioEffect
2121

doc/classes/AudioEffectAmplify.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectAmplify" inherits="AudioEffect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds an amplifying audio effect to an audio bus.
4+
Adds an amplifying audio effect.
55
</brief_description>
66
<description>
7-
Increases or decreases the volume being routed through the audio bus.
7+
Increases or decreases the volume of the audio being routed through this effect.
88
</description>
99
<tutorials>
1010
<link title="Audio buses">$DOCS_URL/tutorials/audio/audio_buses.html</link>

doc/classes/AudioEffectBandLimitFilter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectBandLimitFilter" inherits="AudioEffectFilter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a band limit filter to the audio bus.
4+
Adds a band limit filter.
55
</brief_description>
66
<description>
77
Limits the frequencies in a range around the [member AudioEffectFilter.cutoff_hz] and allows frequencies outside of this range to pass.

doc/classes/AudioEffectBandPassFilter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectBandPassFilter" inherits="AudioEffectFilter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a band pass filter to the audio bus.
4+
Adds a band pass filter.
55
</brief_description>
66
<description>
77
Attenuates the frequencies inside of a range around the [member AudioEffectFilter.cutoff_hz] and cuts frequencies outside of this band.

doc/classes/AudioEffectCapture.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectCapture" inherits="AudioEffect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Captures audio from an audio bus in real-time.
4+
Captures audio in real-time.
55
</brief_description>
66
<description>
7-
AudioEffectCapture is an AudioEffect which copies all audio frames from the attached audio effect bus into its internal ring buffer.
7+
AudioEffectCapture is an AudioEffect which copies all audio frames going into this effect into its internal ring buffer.
88
Application code should consume these audio frames from this ring buffer using [method get_buffer] and process it as needed, for example to capture data from an [AudioStreamMicrophone], implement application-defined effects, or to transmit audio over the network. When capturing audio data from a microphone, the format of the samples will be stereo 32-bit floating-point PCM.
99
Unlike [AudioEffectRecord], this effect only returns the raw audio samples instead of encoding them into an [AudioStream].
1010
</description>

doc/classes/AudioEffectCompressor.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectCompressor" inherits="AudioEffect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a compressor audio effect to an audio bus.
4+
Adds a compressor audio effect.
55
Reduces sounds that exceed a certain threshold level, smooths out the dynamics and increases the overall volume.
66
</brief_description>
77
<description>

doc/classes/AudioEffectDelay.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectDelay" inherits="AudioEffect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a delay audio effect to an audio bus. Plays input signal back after a period of time.
4+
Adds a delay audio effect. Plays input signal back after a period of time.
55
Two tap delay and feedback options.
66
</brief_description>
77
<description>

doc/classes/AudioEffectDistortion.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectDistortion" inherits="AudioEffect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a distortion audio effect to an Audio bus.
4+
Adds a distortion audio effect.
55
Modifies the sound to make it distorted.
66
</brief_description>
77
<description>

doc/classes/AudioEffectEQ10.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectEQ10" inherits="AudioEffectEQ" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a 10-band equalizer audio effect to an Audio bus. Gives you control over frequencies from 31 Hz to 16000 Hz.
4+
Adds a 10-band equalizer audio effect. Gives you control over frequencies from 31 Hz to 16000 Hz.
55
Each frequency can be modulated between -60/+24 dB.
66
</brief_description>
77
<description>

doc/classes/AudioEffectEQ21.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<class name="AudioEffectEQ21" inherits="AudioEffectEQ" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
33
<brief_description>
4-
Adds a 21-band equalizer audio effect to an Audio bus. Gives you control over frequencies from 22 Hz to 22000 Hz.
4+
Adds a 21-band equalizer audio effect. Gives you control over frequencies from 22 Hz to 22000 Hz.
55
Each frequency can be modulated between -60/+24 dB.
66
</brief_description>
77
<description>

0 commit comments

Comments
 (0)