clang auto format followed
I think... just moved the code to VS to see if it auto formatted
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <future>
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
#include <future>
|
||||
|
||||
#include "audio_core/audio_out.h"
|
||||
#include "audio_core/audio_renderer.h"
|
||||
@@ -201,9 +201,7 @@ ResultCode AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_param
|
||||
return AudioCommon::Audren::ERR_INVALID_PARAMETERS;
|
||||
}
|
||||
|
||||
keepThreadReady1 = std::async(std::launch::async, [&] {
|
||||
ReleaseAndQueueBuffers();
|
||||
});
|
||||
keepThreadReady1 = std::async(std::launch::async, [&] { ReleaseAndQueueBuffers(); });
|
||||
|
||||
keepThreadReady1.get();
|
||||
|
||||
@@ -328,20 +326,17 @@ void AudioRenderer::QueueMixedBuffer(Buffer::Tag tag) {
|
||||
elapsed_frame_count++;
|
||||
voice_context.UpdateStateByDspShared();
|
||||
}
|
||||
|
||||
void AudioRenderer::ReleaseAndQueueBuffers() {
|
||||
|
||||
const auto released_buffers{audio_out->GetTagsAndReleaseBuffers(stream)};
|
||||
|
||||
queueMixedThreadFence.resize(0); //instead of passing a s16 to the queue mixed buffer to control, pushing values to a vector seemed about as fast
|
||||
queueMixedThreadFence.resize(0); // instead of passing a s16 to the queue mixed buffer to
|
||||
// control, pushing values to a vector seemed about as fast
|
||||
|
||||
for (const auto& tag : released_buffers) {
|
||||
keepThreadReady2 = std::async(std::launch::async, [&]{
|
||||
QueueMixedBuffer(tag);
|
||||
});
|
||||
keepThreadReady2 = std::async(std::launch::async, [&] { QueueMixedBuffer(tag); });
|
||||
keepThreadReady2.get();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} // namespace AudioCore
|
||||
|
||||
Reference in New Issue
Block a user