bugfix for SIMPLE_WRITE_SOUND
[picodrive.git] / Pico / Pico.c
index 71add13..bf8b707 100644 (file)
@@ -256,6 +256,7 @@ static int CheckIdle(void)
 static __inline void getSamples(int y)\r
 {\r
 #if SIMPLE_WRITE_SOUND\r
+  if (y != 224) return;\r
   PsndRender(0, PsndLen);\r
   if (PicoWriteSound) PicoWriteSound(PsndLen);\r
   PsndClear();\r