aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound
diff options
context:
space:
mode:
authornotaz2015-02-06 01:26:44 +0200
committernotaz2015-02-06 01:26:44 +0200
commit1e0eac2348343c8a046f7a75d460f087556cf7f6 (patch)
tree27a148679e25f6edb7a2dd85c54514139bb72450 /plugins/dfsound
parentbf48d3aa5a4916f9228bc7d18a417c136fdc30a5 (diff)
downloadpcsx_rearmed-1e0eac2348343c8a046f7a75d460f087556cf7f6.tar.gz
pcsx_rearmed-1e0eac2348343c8a046f7a75d460f087556cf7f6.tar.bz2
pcsx_rearmed-1e0eac2348343c8a046f7a75d460f087556cf7f6.zip
libretro: always use fixed samples per frame
Diffstat (limited to 'plugins/dfsound')
-rw-r--r--plugins/dfsound/spu.c2
-rw-r--r--plugins/dfsound/spu_config.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c
index 8e41d50..c6a1bf5 100644
--- a/plugins/dfsound/spu.c
+++ b/plugins/dfsound/spu.c
@@ -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();
diff --git a/plugins/dfsound/spu_config.h b/plugins/dfsound/spu_config.h
index fce1cda..3e88a2c 100644
--- a/plugins/dfsound/spu_config.h
+++ b/plugins/dfsound/spu_config.h
@@ -8,6 +8,7 @@ typedef struct
int iUseInterpolation;
int iTempo;
int iUseThread;
+ int iUseFixedUpdates; // output fixed number of samples/frame
// status
int iThreadAvail;