Skip to content

Commit 86e48bb

Browse files
committed
default type T = int16_t
1 parent 9490a8a commit 86e48bb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/AudioTools/CoreAudio/AudioEffects/PitchShift.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct PitchShiftInfo : public AudioInfo {
8484
* @ingroup buffers
8585
* @tparam T The sample data type (typically int16_t or float)
8686
*/
87-
template <typename T>
87+
template <typename T = int16_t>
8888
class VariableSpeedRingBufferSimple : public BaseBuffer<T> {
8989
public:
9090
/**
@@ -201,7 +201,7 @@ class VariableSpeedRingBufferSimple : public BaseBuffer<T> {
201201
* @ingroup buffers
202202
* @tparam T The sample data type (typically int16_t or float)
203203
*/
204-
template <typename T>
204+
template <typename T = int16_t>
205205
class VariableSpeedRingBuffer180 : public BaseBuffer<T> {
206206
public:
207207
/**
@@ -371,7 +371,7 @@ class VariableSpeedRingBuffer180 : public BaseBuffer<T> {
371371
* @ingroup buffers
372372
* @tparam T The sample data type (typically int16_t or float)
373373
*/
374-
template <typename T>
374+
template <typename T = int16_t>
375375
class VariableSpeedRingBuffer : public BaseBuffer<T> {
376376
public:
377377
/**

src/AudioTools/CoreAudio/AudioFilter/MedianFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace audio_tools {
1111
*filter
1212
* @ingroup filter
1313
**/
14-
template <typename T>
14+
template <typename T = int16_t>
1515
class MedianFilter : public Filter<T> {
1616
public:
1717
MedianFilter(int size = 7) {

src/AudioTools/CoreAudio/GoerzelStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ class GoertzelStream : public AudioStream {
516516
* @param data_len Length of data buffer in bytes
517517
* @param channels Number of audio channels (for sample distribution)
518518
*/
519-
template <typename T>
519+
template <typename T = int16_t>
520520
void processSamplesOfType(const uint8_t* data, size_t data_len,
521521
int channels) {
522522
const T* samples = reinterpret_cast<const T*>(data);

0 commit comments

Comments
 (0)