mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix for constexpr disabled
This commit is contained in:
parent
84376c3f69
commit
4c996bd47b
58 changed files with 84 additions and 78 deletions
|
@ -97,12 +97,12 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T, typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::auto_pan_holder<T, IntType>
|
||||
operator()(T const& depth, T const& rate, IntType samples_per_sec) {
|
||||
operator()(T const& depth, T const& rate, IntType samples_per_sec) const {
|
||||
return sprout::compost::effects::auto_pan_holder<T, IntType>(depth, rate, samples_per_sec);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::auto_pan_holder<T>
|
||||
operator()(T const& depth, T const& rate) {
|
||||
operator()(T const& depth, T const& rate) const {
|
||||
return sprout::compost::effects::auto_pan_holder<T>(depth, rate);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::change_volume_holder<T>
|
||||
operator()(T const& value) {
|
||||
operator()(T const& value) const {
|
||||
return sprout::compost::effects::change_volume_holder<T>(value);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -105,12 +105,12 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T, typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::chorus_holder<T, IntType>
|
||||
operator()(T const& d, T const& depth, T const& rate, IntType samples_per_sec) {
|
||||
operator()(T const& d, T const& depth, T const& rate, IntType samples_per_sec) const {
|
||||
return sprout::compost::effects::chorus_holder<T, IntType>(d, depth, rate, samples_per_sec);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::chorus_holder<T>
|
||||
operator()(T const& d, T const& depth, T const& rate) {
|
||||
operator()(T const& d, T const& depth, T const& rate) const {
|
||||
return sprout::compost::effects::chorus_holder<T>(d, depth, rate);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T = double>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::clip_holder<T>
|
||||
operator()(T const& low = -1, T const& up = 1) {
|
||||
operator()(T const& low = -1, T const& up = 1) const {
|
||||
return sprout::compost::effects::clip_holder<T>(low, up);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::compress_holder<T>
|
||||
operator()(T const& threshold, T const& ratio) {
|
||||
operator()(T const& threshold, T const& ratio) const {
|
||||
return sprout::compost::effects::compress_holder<T>(threshold, ratio);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::distort_holder<T>
|
||||
operator()(T const& gain, T const& level) {
|
||||
operator()(T const& gain, T const& level) const {
|
||||
return sprout::compost::effects::distort_holder<T>(gain, level);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::fuzz_holder<T>
|
||||
operator()(T const& gain, T const& level) {
|
||||
operator()(T const& gain, T const& level) const {
|
||||
return sprout::compost::effects::fuzz_holder<T>(gain, level);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -82,7 +82,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::noise_gate_holder<T>
|
||||
operator()(T const& threshold) {
|
||||
operator()(T const& threshold) const {
|
||||
return sprout::compost::effects::noise_gate_holder<T>(threshold);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::overdrive_holder<T>
|
||||
operator()(T const& gain, T const& level) {
|
||||
operator()(T const& gain, T const& level) const {
|
||||
return sprout::compost::effects::overdrive_holder<T>(gain, level);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -93,12 +93,12 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T, typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::pseudo_stereo_holder<T, IntType>
|
||||
operator()(T const& delay, IntType samples_per_sec) {
|
||||
operator()(T const& delay, IntType samples_per_sec) const {
|
||||
return sprout::compost::effects::pseudo_stereo_holder<T, IntType>(delay, samples_per_sec);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::pseudo_stereo_holder<T>
|
||||
operator()(T const& delay) {
|
||||
operator()(T const& delay) const {
|
||||
return sprout::compost::effects::pseudo_stereo_holder<T>(delay);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -100,12 +100,12 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T, typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::reverb_holder<T, IntType>
|
||||
operator()(T const& attenuation, T const& delay, std::size_t repeat, IntType samples_per_sec) {
|
||||
operator()(T const& attenuation, T const& delay, std::size_t repeat, IntType samples_per_sec) const {
|
||||
return sprout::compost::effects::reverb_holder<T, IntType>(attenuation, delay, repeat, samples_per_sec);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::reverb_holder<T>
|
||||
operator()(T const& attenuation, T const& delay, std::size_t repeat = 2) {
|
||||
operator()(T const& attenuation, T const& delay, std::size_t repeat = 2) const {
|
||||
return sprout::compost::effects::reverb_holder<T>(attenuation, delay, repeat);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR sprout::compost::effects::superpose_holder<
|
||||
typename std::remove_reference<typename sprout::lvalue_reference<RRange>::type>::type
|
||||
>
|
||||
operator()(RRange&& range) {
|
||||
operator()(RRange&& range) const {
|
||||
return sprout::compost::effects::superpose_holder<
|
||||
typename std::remove_reference<typename sprout::lvalue_reference<RRange>::type>::type
|
||||
>(
|
||||
|
|
|
@ -72,12 +72,12 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T, typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::tremolo_holder<T, IntType>
|
||||
operator()(T const& depth, T const& rate, IntType samples_per_sec) {
|
||||
operator()(T const& depth, T const& rate, IntType samples_per_sec) const {
|
||||
return sprout::compost::effects::tremolo_holder<T, IntType>(depth, rate, samples_per_sec);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::tremolo_holder<T>
|
||||
operator()(T const& depth, T const& rate) {
|
||||
operator()(T const& depth, T const& rate) const {
|
||||
return sprout::compost::effects::tremolo_holder<T>(depth, rate);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -104,12 +104,12 @@ namespace sprout {
|
|||
public:
|
||||
template<typename T, typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::vibrato_holder<T, IntType>
|
||||
operator()(T const& d, T const& depth, T const& rate, IntType samples_per_sec) {
|
||||
operator()(T const& d, T const& depth, T const& rate, IntType samples_per_sec) const {
|
||||
return sprout::compost::effects::vibrato_holder<T, IntType>(d, depth, rate, samples_per_sec);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR sprout::compost::effects::vibrato_holder<T>
|
||||
operator()(T const& d, T const& depth, T const& rate) {
|
||||
operator()(T const& d, T const& depth, T const& rate) const {
|
||||
return sprout::compost::effects::vibrato_holder<T>(d, depth, rate);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue