mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
.added configurable size alignment for sound samples buffer
This commit is contained in:
parent
47040dbba6
commit
70e96409c3
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user