Mercurial > hg > beaglert
comparison projects/samples/main.cpp @ 2:021ac8a1a4f9
_new FIR filter example
author | Victor Zappi <victor.zappi@qmul.ac.uk> |
---|---|
date | Thu, 06 Nov 2014 15:59:16 +0000 |
parents | 24fc8026ae8e |
children | 09f03ac40fcc |
comparison
equal
deleted
inserted
replaced
1:24fc8026ae8e | 2:021ac8a1a4f9 |
---|---|
10 #include <libgen.h> | 10 #include <libgen.h> |
11 #include <signal.h> | 11 #include <signal.h> |
12 #include <string> | 12 #include <string> |
13 #include <sndfile.h> // to load audio files | 13 #include <sndfile.h> // to load audio files |
14 #include "../../include/RTAudio.h" | 14 #include "../../include/RTAudio.h" |
15 //#include <native/task.h> // to kill sample trigger task | |
16 #include "SampleData.h" | 15 #include "SampleData.h" |
17 | 16 |
18 using namespace std; | 17 using namespace std; |
19 | |
20 //extern AuxiliaryTask gTriggerSamplesTask; | |
21 | 18 |
22 // Load samples from file | 19 // Load samples from file |
23 int initFile(string file, SampleData *smp)//float *& smp) | 20 int initFile(string file, SampleData *smp)//float *& smp) |
24 { | 21 { |
25 SNDFILE *sndfile ; | 22 SNDFILE *sndfile ; |