[email protected] 8 年之前
父节点
当前提交
93d5808020
共有 3 个文件被更改,包括 9 次插入3 次删除
  1. 2 1
      Android.mk
  2. 5 0
      src/sound/null/SoundHandleNull.cpp
  3. 2 2
      src/sound/null/SoundHandleNull.h

+ 2 - 1
Android.mk

@@ -31,7 +31,8 @@ LOCAL_SRC_FILES := \
 		$(SRC)/oal/StaticStreamOAL.cpp \
 		$(SRC)/oal/StreamingSoundHandleOAL.cpp \
 		$(SRC)/null/SoundSystemNull.cpp \
-		$(SRC)/null/SoundNull.cpp
+		$(SRC)/null/SoundNull.cpp \
+		$(SRC)/null/SoundHandleNull.cpp
 
 
 LOCAL_CFLAGS := -DOXYGINE_SOUND=1

+ 5 - 0
src/sound/null/SoundHandleNull.cpp

@@ -49,4 +49,9 @@ namespace oxygine
     void SoundHandleNull::_stop()
     {
     }
+
+    void SoundHandleNull::_setPosition(int tm)
+    {
+        _pos = tm;
+    }
 }

+ 2 - 2
src/sound/null/SoundHandleNull.h

@@ -18,7 +18,7 @@ namespace oxygine
         void _pause() override;
         void _resume() override;
         void _stop() override;
-        void _setPosition(int tm) {}
+        void _setPosition(int tm) override;
 
 
         int _duration;
@@ -26,6 +26,6 @@ namespace oxygine
         int _lastUpdate;
 
 
-        timeMS _getPosition() const;
+        timeMS _getPosition() const override;
     };
 }