Mercurial > hg > beaglert
diff core/RTAudio.cpp @ 15:901d205d1a3c
Updated to latest PRU library; external PRU file no longer needed. Also catch SIGTERM as well as SIGINT to clean up gracefully.
author | andrewm |
---|---|
date | Sat, 07 Feb 2015 16:41:56 +0000 |
parents | 6adb088196a7 |
children | 670be80463a3 |
line wrap: on
line diff
--- a/core/RTAudio.cpp Fri Jan 23 15:35:10 2015 +0000 +++ b/core/RTAudio.cpp Sat Feb 07 16:41:56 2015 +0000 @@ -57,7 +57,6 @@ // general settings int gRTAudioVerbose = 0; // Verbosity level for debugging -char gPRUFilename[256] = "pru_rtaudio.bin"; // path to PRU binary file int gAmplifierMutePin = -1; int gAmplifierShouldBeginMuted = 0; @@ -209,8 +208,8 @@ gShouldStop = 1; } else { - if(gPRU->start(gPRUFilename)) { - rt_printf("Error: unable to start PRU from file %s\n", gPRUFilename); + if(gPRU->start()) { + rt_printf("Error: unable to start PRU\n"); gShouldStop = 1; } else {