-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - document file formats for bytes
field of AudioSource
#6619
Conversation
Change LGTM :) Can you update your PR title to explain what was done so it's easier to skim in the commit history? |
👋 Also, do you know if the formats supported depend on the feature flag enabled, or if those are only used when decoding files? |
bytes
field of AudioSource
As far as I know you could store any bytes you would like in the bytes field, but playback won't work if the bytes aren't one of the supported formats and that format is enabled in the feature flag. |
@@ -8,7 +8,7 @@ use std::{io::Cursor, sync::Arc}; | |||
#[derive(Debug, Clone, TypeUuid)] | |||
#[uuid = "7a14806a-672b-443b-8d16-4f18afefa463"] | |||
pub struct AudioSource { | |||
/// Raw data of the audio source | |||
/// Raw data of the audio source, which must be in one of the file formats supported by Bevy (wav, ogg, flac or mp3). |
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.
Probably indicate that this uses rodio::Decoder
internally, which has specific functions compiled depending on the features enabled. This means that if there are certain features disabled (mp3, flac, and wav are disabled by default), then it would not work.
…udio_source.rs Co-authored-by: harudagondi <[email protected]>
You should run |
bors r+ |
# Objective Fixes #6299 ## Solution Change one line of documentation. Co-authored-by: dis-da-moe <[email protected]>
bytes
field of AudioSource
bytes
field of AudioSource
…6619) # Objective Fixes bevyengine#6299 ## Solution Change one line of documentation. Co-authored-by: dis-da-moe <[email protected]>
…6619) # Objective Fixes bevyengine#6299 ## Solution Change one line of documentation. Co-authored-by: dis-da-moe <[email protected]>
Objective
Fixes #6299
Solution
Change one line of documentation.