diff --git a/aegisub/audio_player_dsound.cpp b/aegisub/audio_player_dsound.cpp index c960463ec..81a4616d1 100644 --- a/aegisub/audio_player_dsound.cpp +++ b/aegisub/audio_player_dsound.cpp @@ -314,19 +314,6 @@ __int64 DirectSoundPlayer::GetCurrentPosition() { DWORD curtime = GetTickCount(); __int64 tdiff = curtime - startTime; return startPos + tdiff * provider->GetSampleRate() / 1000; - - // Read position - unsigned long int play,write; - HRESULT res = buffer->GetCurrentPosition(&play,NULL); - if (SUCCEEDED(res)) { - int bytesps = provider->GetBytesPerSample(); - write = offset; - if (write < play) write += bufSize; - return playPos + play/bytesps - write/bytesps; - } - - // Failed, just return playPos - return playPos; } diff --git a/aegisub/audio_player_dsound.h b/aegisub/audio_player_dsound.h index dc9198448..d1f3ee286 100644 --- a/aegisub/audio_player_dsound.h +++ b/aegisub/audio_player_dsound.h @@ -76,7 +76,7 @@ private: volatile bool playing; float volume; int offset; - int bufSize; + DWORD bufSize; volatile __int64 playPos; __int64 startPos;