From 28d25210a2668fda241f217c1c19b167b01d2c70 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 17 Jul 2004 22:03:41 +0000 Subject: [PATCH] asserts --- stepmania/src/RageSound.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index b787f75d9c..c09def807b 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -756,12 +756,14 @@ float RageSound::GetPositionSeconds( bool *approximate, RageTimer *Timestamp ) c bool RageSound::SetPositionSeconds( float fSeconds ) { + ASSERT( Sample ); return SetPositionFrames( int(fSeconds * samplerate()) ); } /* This is always the desired sample rate of the current driver. */ int RageSound::GetSampleRate() const { + ASSERT( Sample ); return Sample->GetSampleRate(); }