Permalink
Browse files

Minor debug logging adjustments for MSU1

  • Loading branch information...
mrehkopf committed Apr 30, 2017
1 parent 4a1f5dc commit 40203b7c30ea1e8590a36bfd120514edbeb9e35d
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/msu1.c
View
@@ -219,7 +219,6 @@ int msu1_loop() {
/* Audio buffer refill */
if((fpga_status_now & MSU_FPGA_STATUS_DAC_READ_MSB) != (fpga_status_prev & MSU_FPGA_STATUS_DAC_READ_MSB)) {
DBG_MSU1 printf("audio\n");
if(fpga_status_now & MSU_FPGA_STATUS_DAC_READ_MSB) {
dac_addr = 0;
} else {
@@ -281,13 +280,15 @@ int msu1_loop() {
if(msu_audio_bytes_read < MSU_DAC_BUFSIZE / 2) {
ff_sd_offload=0;
sd_offload=0;
DBG_MSU1 printf("wanted %u bytes, got %u (EOF)\n", MSU_DAC_BUFSIZE / 2, msu_audio_bytes_read);
if(msu_repeat) {
DBG_MSU1 printf("loop\n");
ff_sd_offload=1;
sd_offload_tgt=1;
f_lseek(&file_handle, MSU_PCM_OFFSET_WAVEDATA + msu_loop_point * 4);
ff_sd_offload=1;
sd_offload_tgt=1;
DBG_MSU1 printf("---filling rest of buffer from loop point for %u bytes\n", (MSU_DAC_BUFSIZE / 2) - msu_audio_bytes_read);
f_read(&file_handle, file_buf, (MSU_DAC_BUFSIZE / 2) - msu_audio_bytes_read, &msu_audio_bytes_read);
} else {
set_msu_status(MSU_SNES_STATUS_CLEAR_AUDIO_PLAY);

0 comments on commit 40203b7

Please sign in to comment.