From be8c43556936f07277fc0936ffac75de2fb009f5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Dec 2006 08:11:58 +0000 Subject: [PATCH] fix RageSoundReader_Split::SetPosition(0) --- stepmania/src/RageSoundReader_ChannelSplit.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageSoundReader_ChannelSplit.cpp b/stepmania/src/RageSoundReader_ChannelSplit.cpp index c3c9e63874..163724b715 100644 --- a/stepmania/src/RageSoundReader_ChannelSplit.cpp +++ b/stepmania/src/RageSoundReader_ChannelSplit.cpp @@ -119,7 +119,12 @@ RageSoundReader_Split::~RageSoundReader_Split() int RageSoundReader_Split::SetPosition( int iFrame ) { m_iPositionFrame = iFrame; - return iFrame; + + /* We can't tell whether we're past EOF. We can't ReadBuffer here, because the + * other sounds using this same source probably havn't seeked yet, so seeking + * to the beginning of the file would buffer between there and the position + * of those sounds. Just return success, and we'll return EOF in Read if needed. */ + return 1; } bool RageSoundReader_Split::SetProperty( const RString &sProperty, float fValue )