mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
21 lines
435 B
C
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;
|
|
}
|
|
|
|
|