mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
AK: Deprecate the old AK::Stream
This also removes a few cases where the respective header wasn't actually required to be included.
This commit is contained in:
parent
230cb3b0cb
commit
ae64b68717
38 changed files with 116 additions and 120 deletions
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include "Mixer.h"
|
||||
#include <AK/Array.h>
|
||||
#include <AK/DeprecatedMemoryStream.h>
|
||||
#include <AK/Format.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/NumericLimits.h>
|
||||
#include <AudioServer/ConnectionFromClient.h>
|
||||
#include <AudioServer/Mixer.h>
|
||||
|
@ -99,7 +99,7 @@ void Mixer::mix()
|
|||
if (m_muted || m_main_volume < 0.01) {
|
||||
m_device->write(m_zero_filled_buffer.data(), static_cast<int>(m_zero_filled_buffer.size()));
|
||||
} else {
|
||||
OutputMemoryStream stream { m_stream_buffer };
|
||||
DeprecatedOutputMemoryStream stream { m_stream_buffer };
|
||||
|
||||
for (auto& mixed_sample : mixed_buffer) {
|
||||
mixed_sample.log_multiply(static_cast<float>(m_main_volume));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue