thug/Code/Gel/Music/ngc/bgm/bgm_r2sm.c
2016-02-14 08:39:12 +11:00

21 lines
435 B
C

#include <kernel.h>
#define SPU_BLOCK 512
// Using SP will speed things up, but ...
void _BgmRaw2SpuMono( unsigned int *src, unsigned int *dst, unsigned int block )
{
int i;
for ( i = 0; i < block; i++ )
{
memcpy( (void*)((int)dst+i*SPU_BLOCK*2), (void*)((int)src+i*SPU_BLOCK), SPU_BLOCK );
memcpy( (void*)((int)dst+i*SPU_BLOCK*2+SPU_BLOCK), (void*)((int)src+i*SPU_BLOCK) , SPU_BLOCK );
}
return;
}