Skip to content

[3.x] New SampleRate audio effect#70085

Open
M-O-Marmalade wants to merge 1 commit intogodotengine:3.xfrom
M-O-Marmalade:audio-effect-sample-rate-3.x
Open

[3.x] New SampleRate audio effect#70085
M-O-Marmalade wants to merge 1 commit intogodotengine:3.xfrom
M-O-Marmalade:audio-effect-sample-rate-3.x

Conversation

@M-O-Marmalade
Copy link
Copy Markdown
Contributor

Backport of #68768 from master branch.

Proposal at godotengine/godot-proposals#5810

@M-O-Marmalade M-O-Marmalade requested review from a team as code owners December 15, 2022 01:45
@M-O-Marmalade M-O-Marmalade force-pushed the audio-effect-sample-rate-3.x branch from 1c965b6 to b9600dc Compare December 15, 2022 02:20
@Calinou Calinou added this to the 3.6 milestone Dec 15, 2022
@akien-mga akien-mga changed the title New SampleRate audio effect [3.x] New SampleRate audio effect Jan 5, 2024

public:
float rate;
float mix;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably rate and mix should be private?

@lawnjelly
Copy link
Copy Markdown
Member

I tested this and it appears to work fine and am happy to approve if the changes above made.

I don't know what the feelings are on the proposal / demand .. it does seem we have a number of users making retro games especially on 3.x that could benefit from this kind of chiptune sound. I also don't think this will add much in terms of binary size.

processed_frames = Math::fmod(processed_frames - frames_until_next_sample, 1.0f);
}

// output dry/wet signal based on the `mix` control
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Output dry/wet signal based on the `mix` control.

We've recently standardized on capitalized / full stops for new comments, so I suppose we should be pedantic. 😁

@lawnjelly lawnjelly modified the milestones: 3.6, 3.7 Sep 11, 2024
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.

3 participants