pcm/*: use std::span instead of ConstBuffer
This commit is contained in:
@@ -55,7 +55,7 @@ public:
|
||||
ConstBuffer<void> Flush() override {
|
||||
return state
|
||||
? state->Flush()
|
||||
: nullptr;
|
||||
: std::span<const std::byte>{};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -108,7 +108,7 @@ ConvertFilter::FilterPCM(ConstBuffer<void> src)
|
||||
return state
|
||||
? state->Convert(src)
|
||||
/* optimized special case: no-op */
|
||||
: src;
|
||||
: std::span<const std::byte>{src};
|
||||
}
|
||||
|
||||
std::unique_ptr<PreparedFilter>
|
||||
|
@@ -201,7 +201,7 @@ ConstBuffer<void>
|
||||
ReplayGainFilter::FilterPCM(ConstBuffer<void> src)
|
||||
{
|
||||
return mixer != nullptr
|
||||
? src
|
||||
? std::span<const std::byte>{src}
|
||||
: pv.Apply(src);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user