X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fexternals.h;fp=plugins%2Fdfsound%2Fexternals.h;h=f3fbc678c94e64cd94e09477c98b3bea53ddd96f;hp=f638b94faacf1485a18bce5e4acba883a52e7d66;hb=d358733b8461f6fa182b33d29f0676c2df505854;hpb=eb38e4a2fbcdece0afdea63f6f0ad3b2a84cb8a5 diff --git a/plugins/dfsound/externals.h b/plugins/dfsound/externals.h index f638b94f..f3fbc678 100644 --- a/plugins/dfsound/externals.h +++ b/plugins/dfsound/externals.h @@ -118,6 +118,7 @@ typedef struct unsigned int prevflags:3; // flags from previous block unsigned int bIgnoreLoop:1; // Ignore loop unsigned int bNewPitch:1; // pitch changed + unsigned int bStarting:1; // starting after keyon union { struct { int iLeftVolume; // left volume @@ -261,9 +262,9 @@ void do_samples(unsigned int cycles_to, int do_sync); void schedule_next_irq(void); void check_irq_io(unsigned int addr); -#define do_samples_if_needed(c, sync) \ +#define do_samples_if_needed(c, sync, samples) \ do { \ - if (sync || (int)((c) - spu.cycles_played) >= 16 * 768) \ + if (sync || (int)((c) - spu.cycles_played) >= (samples) * 768) \ do_samples(c, sync); \ } while (0)