flowgraph: fix getSampleRate()

Also add some warning comments.
diff --git a/apps/OboeTester/app/src/main/cpp/flowgraph/AudioProcessorBase.h b/apps/OboeTester/app/src/main/cpp/flowgraph/AudioProcessorBase.h
index 7032ac7..d0e6a0f 100644
--- a/apps/OboeTester/app/src/main/cpp/flowgraph/AudioProcessorBase.h
+++ b/apps/OboeTester/app/src/main/cpp/flowgraph/AudioProcessorBase.h
@@ -30,6 +30,7 @@
 #include <time.h>
 #include <unistd.h>
 
+// Set this to 1 if using it inside the Android framework.
 #define FLOWGRAPH_ANDROID_INTERNAL 0
 
 namespace flowgraph {
@@ -167,7 +168,8 @@
      * If you connect a second output port to an input port
      * then it overwrites the previous connection.
      *
-     * This not thread safe. Do not modify the graph topology form another thread while running.
+     * This not thread safe. Do not modify the graph topology from another thread while running.
+     * Also do not delete a module while it is connected to another port if the graph is running.
      */
     void connect(AudioFloatInputPort *port);
 
diff --git a/apps/OboeTester/app/src/main/cpp/flowgraph/OscillatorBase.h b/apps/OboeTester/app/src/main/cpp/flowgraph/OscillatorBase.h
index 42f8c3b..b336967 100644
--- a/apps/OboeTester/app/src/main/cpp/flowgraph/OscillatorBase.h
+++ b/apps/OboeTester/app/src/main/cpp/flowgraph/OscillatorBase.h
@@ -32,7 +32,7 @@
         mFrequencyToPhaseIncrement = 1.0f / sampleRate; // scaler
     }
 
-    float setSampleRate() {
+    float getSampleRate() {
         return mSampleRate;
     }