.added configurable size alignment for sound samples buffer

This commit is contained in:
EkeEke 2012-07-15 17:41:09 +02:00
parent 47040dbba6
commit 70e96409c3
2 changed files with 6 additions and 2 deletions

View File

@ -54,6 +54,8 @@
#define CD_BRAM_JP "/genplus/saves/cd/scd_J.brm"
#define CART_BRAM "/genplus/saves/cd/cart.brm"
#define ALIGN_SND 0xfffff8 /* 32 bytes aligned sound buffers (8 samples alignment) */
/*************************************************/
#ifdef HW_RVL

View File

@ -178,8 +178,10 @@ int audio_update(int16 *buffer)
/* get number of available samples */
int size = sound_update(mcycles_vdp);
/* return an aligned number of samples */
size &= ~7;
#ifdef ALIGN_SND
/* return an aligned number of samples if necessary*/
size &= ALIGN_SND;
#endif
if (config.hq_fm)
{