File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ struct PitchShiftInfo : public AudioInfo {
84
84
* @ingroup buffers
85
85
* @tparam T The sample data type (typically int16_t or float)
86
86
*/
87
- template <typename T>
87
+ template <typename T = int16_t >
88
88
class VariableSpeedRingBufferSimple : public BaseBuffer <T> {
89
89
public:
90
90
/* *
@@ -201,7 +201,7 @@ class VariableSpeedRingBufferSimple : public BaseBuffer<T> {
201
201
* @ingroup buffers
202
202
* @tparam T The sample data type (typically int16_t or float)
203
203
*/
204
- template <typename T>
204
+ template <typename T = int16_t >
205
205
class VariableSpeedRingBuffer180 : public BaseBuffer <T> {
206
206
public:
207
207
/* *
@@ -371,7 +371,7 @@ class VariableSpeedRingBuffer180 : public BaseBuffer<T> {
371
371
* @ingroup buffers
372
372
* @tparam T The sample data type (typically int16_t or float)
373
373
*/
374
- template <typename T>
374
+ template <typename T = int16_t >
375
375
class VariableSpeedRingBuffer : public BaseBuffer <T> {
376
376
public:
377
377
/* *
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace audio_tools {
11
11
*filter
12
12
* @ingroup filter
13
13
**/
14
- template <typename T>
14
+ template <typename T = int16_t >
15
15
class MedianFilter : public Filter <T> {
16
16
public:
17
17
MedianFilter (int size = 7 ) {
Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ class GoertzelStream : public AudioStream {
516
516
* @param data_len Length of data buffer in bytes
517
517
* @param channels Number of audio channels (for sample distribution)
518
518
*/
519
- template <typename T>
519
+ template <typename T = int16_t >
520
520
void processSamplesOfType (const uint8_t * data, size_t data_len,
521
521
int channels) {
522
522
const T* samples = reinterpret_cast <const T*>(data);
You can’t perform that action at this time.
0 commit comments