libretro: always use fixed samples per frame
authornotaz <notasas@gmail.com>
Thu, 5 Feb 2015 23:26:44 +0000 (01:26 +0200)
committernotaz <notasas@gmail.com>
Thu, 5 Feb 2015 23:26:44 +0000 (01:26 +0200)
frontend/libretro.c
plugins/dfsound/spu.c
plugins/dfsound/spu_config.h

index 867522d..acc64a1 100644 (file)
@@ -1255,6 +1255,7 @@ void retro_init(void)
        cycle_multiplier = 200;
 #endif
        pl_rearmed_cbs.gpu_peops.iUseDither = 1;
+       spu_config.iUseFixedUpdates = 1;
 
        McdDisable[0] = 0;
        McdDisable[1] = 1;
index 8e41d50..c6a1bf5 100644 (file)
@@ -1253,7 +1253,7 @@ void schedule_next_irq(void)
 
 void CALLBACK SPUasync(unsigned int cycle, unsigned int flags)
 {
- do_samples(cycle, 0);
+ do_samples(cycle, spu_config.iUseFixedUpdates);
 
  if (spu.spuCtrl & CTRL_IRQ)
   schedule_next_irq();
index fce1cda..3e88a2c 100644 (file)
@@ -8,6 +8,7 @@ typedef struct
  int        iUseInterpolation;
  int        iTempo;
  int        iUseThread;
+ int        iUseFixedUpdates;  // output fixed number of samples/frame
 
  // status
  int        iThreadAvail;