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 {
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 >
8888class 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 >
205205class 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 >
375375class VariableSpeedRingBuffer : public BaseBuffer <T> {
376376 public:
377377 /* *
Original file line number Diff line number Diff 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 >
1515class MedianFilter : public Filter <T> {
1616 public:
1717 MedianFilter (int size = 7 ) {
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments