]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.hxx
Update the SoundSample api so we can request that a copy of the sample be
[simgear.git] / simgear / structure / event_mgr.hxx
index 1ae86d135ffbe57463b0cf0aef9f19fc2161fd73..4c8d29bd61d19675847a8069300ea3e7eadf72b3 100644 (file)
@@ -42,6 +42,7 @@ private:
     int parent(int n) { return ((n+1)/2) - 1; }
     int lchild(int n) { return ((n+1)*2) - 1; }
     int rchild(int n) { return ((n+1)*2 + 1) - 1; }
+    double pri(int n) { return _table[n].pri; }
     void swap(int a, int b) {
        HeapEntry tmp = _table[a];
        _table[a] = _table[b];
@@ -107,7 +108,7 @@ public:
     { add(make_callback(o,m), 0, delay, false, sim); }
 
 private:
-    friend class SGTimer;
+    friend struct SGTimer;
 
     void add(SGCallback* cb,
              double interval, double delay,