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
AudioCommon: Move DPL2 decoding into Mixer #5311
Conversation
class AudioStretcher | ||
{ | ||
public: | ||
AudioStretcher(unsigned int sample_rate); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
// Licensed under GPLv2+ | ||
// Refer to the license.txt file included. | ||
|
||
#include <cmath> |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Ping! Anything holding this back? @MerryMage if you have the time, would you mind taking a look? |
Needs a rebase. |
Logic LGTM |
Rebased! |
Pretty straightforward, though testing is a little janky on macOS (OpenAL doesn't support multichannel, so I hacked up CoreAudioStream on my local copy).
Also extracts out @MerryMage's time-stretching logic into an AudioStretcher class and splits it into two functions, to make clear that you can use the same buffer for input and output. Not really sure about this, but it seemed silly to add another intermediate buffer when the existing one works fine.