thug/Code/Gel/Music/Ngps/Bgm/bgm_r2sm.c

21 lines
435 B
C
Raw Permalink Normal View History

2016-02-13 21:39:12 +00:00
#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;
}