From 4f89b016efe2291dc3d933bf046e19d9f68e857c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 19 Sep 2003 21:14:10 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageSoundReader_Vorbisfile.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/stepmania/src/RageSoundReader_Vorbisfile.cpp b/stepmania/src/RageSoundReader_Vorbisfile.cpp index 696fa99960..8998faf90e 100644 --- a/stepmania/src/RageSoundReader_Vorbisfile.cpp +++ b/stepmania/src/RageSoundReader_Vorbisfile.cpp @@ -120,11 +120,7 @@ int RageSoundReader_Vorbisfile::SetPosition(int ms, bool accurate) const float to = ms/1000.0f; #endif - int ret; -// if( ms ) - ret = ov_time_seek( vf, to ); -// else -// ret = ov_raw_seek( vf, 0 ); + int ret = ov_time_seek( vf, to ); if(ret < 0) { SetError( ov_ssprintf(ret, "ogg: SetPosition failed") ); @@ -153,8 +149,6 @@ int RageSoundReader_Vorbisfile::Read(char *buf, unsigned len) int ret = ov_read(vf, tmpbuf, sizeof(tmpbuf), (SDL_BYTEORDER == SDL_BIG_ENDIAN)?1:0, 2, 1, &bstream); #endif -//int ret = 4096; -//memset(tmpbuf, 0, sizeof(tmpbuf)); if(ret == OV_HOLE) continue; if(ret == OV_EBADLINK)