diff --git a/MiniEngine.cpp b/MiniEngine.cpp index edf9b46..931b881 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -2318,6 +2318,12 @@ namespace MiniEngine } } + //static + int MusicPlayer::SetMusicPosition(double position) + { + return Mix_SetMusicPosition(position); + } + void Sound::_set(Mix_Chunk* p) { _sound.reset(p,Mix_FreeChunk); diff --git a/MiniEngine.h b/MiniEngine.h index 7f62511..d6313ea 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -690,6 +690,9 @@ namespace MiniEngine bool isPaused(); int isFading(); + /// Experimental + static int SetMusicPosition(double position); + private: Music m; };