mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 19:51:48 +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 CD_BRAM_JP "/genplus/saves/cd/scd_J.brm"
|
||||||
#define CART_BRAM "/genplus/saves/cd/cart.brm"
|
#define CART_BRAM "/genplus/saves/cd/cart.brm"
|
||||||
|
|
||||||
|
#define ALIGN_SND 0xfffff8 /* 32 bytes aligned sound buffers (8 samples alignment) */
|
||||||
|
|
||||||
/*************************************************/
|
/*************************************************/
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
|
@ -178,8 +178,10 @@ int audio_update(int16 *buffer)
|
|||||||
/* get number of available samples */
|
/* get number of available samples */
|
||||||
int size = sound_update(mcycles_vdp);
|
int size = sound_update(mcycles_vdp);
|
||||||
|
|
||||||
/* return an aligned number of samples */
|
#ifdef ALIGN_SND
|
||||||
size &= ~7;
|
/* return an aligned number of samples if necessary*/
|
||||||
|
size &= ALIGN_SND;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (config.hq_fm)
|
if (config.hq_fm)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user