example_aubioDemo/src/ofApp.cpp: close soundstream on exit
authorPaul Brossier <piem@piem.org>
Fri, 30 Oct 2015 11:33:04 +0000 (12:33 +0100)
committerPaul Brossier <piem@piem.org>
Fri, 30 Oct 2015 11:33:04 +0000 (12:33 +0100)
example_aubioDemo/src/ofApp.cpp
example_aubioDemo/src/ofApp.h

index b45b2c5..2c85866 100644 (file)
@@ -48,6 +48,11 @@ void ofApp::setup(){
 
 }
 
+void ofApp::exit(){
+    ofSoundStreamStop();
+    ofSoundStreamClose();
+}
+
 void ofApp::audioIn(float * input, int bufferSize, int nChannels){
     // compute onset detection
     onset.audioIn(input, bufferSize, nChannels);
index 622db83..13c8434 100644 (file)
@@ -8,6 +8,8 @@ class ofApp : public ofBaseApp{
 
        public:
                void setup();
+               void exit();
+
                void update();
                void draw();