32x: preliminary PWM implementation. 32x opts in menu
[picodrive.git] / pico / sound / sound.c
index 6e0db26..fbb942a 100644 (file)
@@ -356,6 +356,9 @@ static int PsndRender(int offset, int length)
       cdda_raw_update(buf32, length);\r
   }\r
 \r
+  if ((PicoAHW & PAHW_32X) && (PicoOpt & POPT_EN_PWM))\r
+    p32x_pwm_update(buf32, length, stereo);\r
+\r
   // convert + limit to normal 16bit output\r
   PsndMix_32_to_16l(PsndOut+offset, buf32, length);\r
 \r