Skip to content

Commit 611144b

Browse files
committed
AudioSTK: template defaults
1 parent db854f2 commit 611144b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AudioTools/AudioLibs/AudioSTK.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ namespace audio_tools {
2727
*
2828
* @ingroup generator
2929
* @tparam T
30+
* @author Phil Schatzmann
31+
* @copyright GPLv3
3032
*/
3133

32-
template <class StkCls, class T>
34+
template <class StkCls=stk::Generator, class T=int16_t>
3335
class STKGenerator : public SoundGenerator<T> {
3436
public:
3537
STKGenerator() = default;
@@ -78,7 +80,7 @@ class STKGenerator : public SoundGenerator<T> {
7880
* @brief STK Stream for Instrument
7981
* @ingroup dsp
8082
*/
81-
template <class StkCls, class T>
83+
template <class StkCls=stk::Instrmnt, class T=int16_t>
8284
class STKInstrument : public STKGenerator<StkCls, T> {
8385
public:
8486
STKInstrument() = default;

0 commit comments

Comments
 (0)