Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a mechanism for communicating streaming size behaviour at compile… #248

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion include/clients/common/AudioClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,18 @@ constexpr bool isAudio = isAudioIn<T> || isAudioOut<T>;
struct Control
{};
struct ControlIn : Control
{};
{};
struct ControlOut : Control
{};
struct ControlOutFollowsIn : ControlIn, ControlOut
{};


template <typename T>
constexpr bool isControlIn = std::is_base_of<ControlIn, T>::value;
template <typename T>
constexpr bool isControlOutFollowsIn = std::is_base_of<ControlOutFollowsIn, T>::value;
template <typename T>
constexpr bool isControlOut = std::is_base_of<ControlOut, T>::value;
template <typename T>
constexpr bool isControl = std::is_base_of<Control, T>::value;
Expand Down
2 changes: 1 addition & 1 deletion include/clients/rt/RunningStatsClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using HostVector = FluidTensorView<T, 1>;
constexpr auto RunningStatsParams =
defineParameters(LongParam("history", "History Size", 2, Min(2)));

class RunningStatsClient : public FluidBaseClient, public ControlIn, ControlOut
class RunningStatsClient : public FluidBaseClient, public ControlOutFollowsIn
{
public:
using ParamDescType = decltype(RunningStatsParams);
Expand Down