diff options
| author | comex <comexk@gmail.com> | 2023-07-01 15:01:11 -0700 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2023-07-01 15:01:11 -0700 |
| commit | 98685d48e3cb9f25f6919f004ec62cadf33afad2 (patch) | |
| tree | 9df2ce7f57370641589bfae7196c77b090bcbe0f /src/audio_core/renderer/command/sink/device.cpp | |
| parent | d885dd5b642807d0587acad43668cfccfdf06d1e (diff) | |
| parent | 8857911216f16a098231c25e0d2992ab67e33f83 (diff) | |
Merge remote-tracking branch 'origin/master' into ssl
Diffstat (limited to 'src/audio_core/renderer/command/sink/device.cpp')
| -rw-r--r-- | src/audio_core/renderer/command/sink/device.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio_core/renderer/command/sink/device.cpp b/src/audio_core/renderer/command/sink/device.cpp index e88372a75..5f74dd7ad 100644 --- a/src/audio_core/renderer/command/sink/device.cpp +++ b/src/audio_core/renderer/command/sink/device.cpp @@ -33,8 +33,7 @@ void DeviceSinkCommand::Process(const ADSP::CommandListProcessor& processor) { .consumed{false}, }; - std::vector<s16> samples(out_buffer.frames * input_count); - + std::array<s16, TargetSampleCount * MaxChannels> samples{}; for (u32 channel = 0; channel < input_count; channel++) { const auto offset{inputs[channel] * out_buffer.frames}; @@ -45,7 +44,7 @@ void DeviceSinkCommand::Process(const ADSP::CommandListProcessor& processor) { } out_buffer.tag = reinterpret_cast<u64>(samples.data()); - stream->AppendBuffer(out_buffer, samples); + stream->AppendBuffer(out_buffer, {samples.data(), out_buffer.frames * input_count}); if (stream->IsPaused()) { stream->Start(); |
