-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve AudioStreamGenerator and AudioEffectSpectrumAnalyzer documentation #48682
Conversation
<member name="tap_back_pos" type="float" setter="set_tap_back_pos" getter="get_tap_back_pos" default="0.01"> | ||
</member> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does anyone know what the tap_back_pos
property is used for? I'd like to get 100% documentation completion on this class 🙂
</description> | ||
</method> | ||
<method name="get_frames_available" qualifiers="const"> | ||
<return type="int"> | ||
</return> | ||
<description> | ||
Returns the number of audio data frames left to play. If this returned number reaches [code]0[/code], the audio will stop playing until frames are added again. Therefore, make sure your script can always generate and push new audio frames fast enough to avoid audio cracking. | ||
</description> | ||
</method> | ||
<method name="get_skips" qualifiers="const"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does anyone know what the get_skips()
method is used for? I'd like to get 100% documentation completion on this class 🙂
</member> | ||
<member name="fft_size" type="int" setter="set_fft_size" getter="get_fft_size" enum="AudioEffectSpectrumAnalyzer.FFT_Size" default="2"> | ||
The size of the [url=https://en.wikipedia.org/wiki/Fast_Fourier_transform]Fast Fourier transform[/url] buffer. Higher values result in better quality, but are more demanding on the CPU and may cause audio cracking if the CPU can't keep up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the FFT size actually affect the visualization quality, or just the history size available? Does it have any relationship with the buffer_length
above?
811b87e
to
eeca267
Compare
69ad402
to
6549f43
Compare
…ation - Mention audio sample rate caveats in other classes where relevant.
6549f43
to
c872819
Compare
Thanks! |
Cherry-picked for 3.4. |
Follow-up to #48681.
cc @unfa as he works with audio 🙂