Enforce signed licenses and seamless track handoff
Independent component release / publish (push) Failing after 11s
Independent component release / publish (push) Failing after 11s
This commit is contained in:
15 files changed
+1367
-98
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace Echoion::Core::PlaybackDetail
|
||||
{
|
||||
/// A boundary can be emitted without padding when the outgoing tail and
|
||||
/// already-decoded incoming PCM together fill one device frame.
|
||||
[[nodiscard]] constexpr bool
|
||||
canFillDeviceFrame(std::size_t outgoingSamples,
|
||||
std::size_t incomingSamples,
|
||||
std::size_t frameSamples) noexcept
|
||||
{
|
||||
return frameSamples > 0 && outgoingSamples > 0 &&
|
||||
outgoingSamples < frameSamples &&
|
||||
incomingSamples >= frameSamples - outgoingSamples;
|
||||
}
|
||||
} // namespace Echoion::Core::PlaybackDetail
|
||||
Reference in new issue
Block a user