Lines 462-468
Link Here
|
462 |
} |
462 |
} |
463 |
if (bytes > 0){ |
463 |
if (bytes > 0){ |
464 |
//read 1024byte = 512 sample * 2byte |
464 |
//read 1024byte = 512 sample * 2byte |
465 |
c = NESAudioRender(data, bytes/2); |
465 |
c = NESAudioRender((Int16*)data, bytes/2); |
466 |
if (c < 512) |
466 |
if (c < 512) |
467 |
count = 0; |
467 |
count = 0; |
468 |
else |
468 |
else |
Lines 529-535
Link Here
|
529 |
count = ftell(nsf_file->file); |
529 |
count = ftell(nsf_file->file); |
530 |
fseek(nsf_file->file, 0, SEEK_SET); |
530 |
fseek(nsf_file->file, 0, SEEK_SET); |
531 |
|
531 |
|
532 |
(void*)buffer = g_malloc0(count); |
532 |
buffer = (void*)g_malloc0(count); |
533 |
for(i=0;i<count;i++){ |
533 |
for(i=0;i<count;i++){ |
534 |
*(buffer+i) = fgetc(nsf_file->file); |
534 |
*(buffer+i) = fgetc(nsf_file->file); |
535 |
} |
535 |
} |