Mercurial > hg > beaglert
diff projects/audio_in_FFT/main.cpp @ 52:a6d223473ea2 newapi
Updated examples for new API. tank_wars not yet updated; audio_in_FFT and oscillator_bank not working properly yet.
author | andrewm |
---|---|
date | Sun, 31 May 2015 02:13:39 -0500 |
parents | 901d205d1a3c |
children | 3c3a1357657d |
line wrap: on
line diff
--- a/projects/audio_in_FFT/main.cpp Sat May 30 13:25:51 2015 -0500 +++ b/projects/audio_in_FFT/main.cpp Sun May 31 02:13:39 2015 -0500 @@ -10,7 +10,7 @@ #include <libgen.h> #include <signal.h> #include <getopt.h> -#include "../../include/RTAudio.h" +#include "../../include/BeagleRT.h" using namespace std; @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) { - RTAudioSettings settings; // Standard audio settings + BeagleRTInitSettings settings; // Standard audio settings int fftSize = 64; // Size of the FFT, in samples struct option customOptions[] = @@ -46,7 +46,7 @@ // Set default settings BeagleRT_defaultSettings(&settings); - settings.useMatrix = 0; // No matrix usage by default + settings.useAnalog = 0; // No matrix usage by default // Parse command-line arguments while (1) {