Skip to content

Commit

Permalink
Merge pull request #248 from AlexHarker/feature/streaming-lists-fix
Browse files Browse the repository at this point in the history
Add a mechanism for communicating streaming size behaviour at compile…
  • Loading branch information
tremblap authored Aug 23, 2023
2 parents f916b8e + 0b852c1 commit 16272b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 16272b1

Please sign in to comment.