diff src/console/Spc_Emu.cxx @ 318:eb5d48fcf8ea trunk

[svn] - use blargg's fix instead
author nenolod
date Thu, 30 Nov 2006 20:20:30 -0800
parents fb513e10174e
children 986f098da058
line wrap: on
line diff
--- a/src/console/Spc_Emu.cxx	Thu Nov 30 20:18:38 2006 -0800
+++ b/src/console/Spc_Emu.cxx	Thu Nov 30 20:20:30 2006 -0800
@@ -287,9 +287,12 @@
 
 blargg_err_t Spc_Emu::skip_( long count )
 {
-	count = long (count * resampler.ratio()) & ~1;
-	
-	count -= resampler.skip_input( count );
+	if ( sample_rate() != native_sample_rate )
+	{
+		count = long (count * resampler.ratio()) & ~1;
+		count -= resampler.skip_input( count );
+	} 
+
 	if ( count > 0 )
 		RETURN_ERR( apu.skip( count ) );