Skip to content
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

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 13, 2021

Follow-up to #48681.

  • Mention audio sample rate caveats in other classes where relevant.

cc @unfa as he works with audio 🙂

@Calinou Calinou requested a review from a team as a code owner May 13, 2021 00:35
@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release documentation enhancement labels May 13, 2021
@Calinou Calinou added this to the 4.0 milestone May 13, 2021
Comment on lines 23 to 24
<member name="tap_back_pos" type="float" setter="set_tap_back_pos" getter="get_tap_back_pos" default="0.01">
</member>
Copy link
Member Author

@Calinou Calinou May 13, 2021

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">
Copy link
Member Author

@Calinou Calinou May 13, 2021

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.
Copy link
Member Author

@Calinou Calinou May 13, 2021

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?

@Calinou Calinou force-pushed the doc-audio-generation branch 4 times, most recently from 811b87e to eeca267 Compare May 13, 2021 00:44
@Calinou Calinou changed the title Improve AudioStreamGenertor and AudioEffectSpectrumAnalyzer documentation Improve AudioStreamGenerator and AudioEffectSpectrumAnalyzer documentation May 13, 2021
@Calinou Calinou force-pushed the doc-audio-generation branch 3 times, most recently from 69ad402 to 6549f43 Compare May 13, 2021 20:46
…ation

- Mention audio sample rate caveats in other classes where relevant.
@Calinou Calinou force-pushed the doc-audio-generation branch from 6549f43 to c872819 Compare May 15, 2021 21:23
@akien-mga akien-mga merged commit c2ba60f into godotengine:master Jun 15, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 17, 2021
@Calinou Calinou deleted the doc-audio-generation branch June 17, 2021 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants