Fix a couple of warnings.

This commit is contained in:
riccardom 2008-12-29 13:05:09 +00:00
parent 7d0da6ca97
commit 1ffc0bc78a
1 changed files with 4 additions and 3 deletions

View File

@ -159,7 +159,7 @@ int SPU_Init(int coreid, int buffersize)
} }
} }
for(int i = 0; i < 8; i++) for(i = 0; i < 8; i++)
{ {
for(j = 0; j < 89; j++) for(j = 0; j < 89; j++)
{ {
@ -1350,10 +1350,11 @@ void SNDFileDeInit()
void SNDFileUpdateAudio(s16 *buffer, u32 num_samples) void SNDFileUpdateAudio(s16 *buffer, u32 num_samples)
{ {
size_t elems_written; size_t elems_written;
if (spufp) if (spufp) {
elems_written = fwrite((void *)buffer, num_samples*2, 2, spufp); elems_written = fwrite((void *)buffer, num_samples*2, 2, spufp);
INFO("%i written\n", elems_written); INFO("%i written\n", elems_written);
} }
}
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////