Subversion Repositories svn.mios32

Rev

Rev 1358 | Rev 1360 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1358 Rev 1359
Line 306... Line 306...
306
u8 this_bank=Read_Switch(); // Get bank value
306
u8 this_bank=Read_Switch(); // Get bank value
307
if(this_bank==sample_bank_no) { return; } // Nothing happened as same as global var
307
if(this_bank==sample_bank_no) { return; } // Nothing happened as same as global var
308
sample_bank_no=this_bank;   // Set new bank
308
sample_bank_no=this_bank;   // Set new bank
309
DEBUG_MSG("Changing bank to %d",sample_bank_no);
309
DEBUG_MSG("Changing bank to %d",sample_bank_no);
310
sdcard_access_allowed=0;
310
sdcard_access_allowed=0;
311
//DEBUG_MSG("Stopping I2S");
-
 
312
//(void) MIOS32_I2S_Stop;       // Stop transfers
-
 
313
DEBUG_MSG("Opening new sample bank");
311
DEBUG_MSG("Opening new sample bank");
314
Open_Bank(sample_bank_no);  // Load relevant bank
312
Open_Bank(sample_bank_no);  // Load relevant bank
315
//DEBUG_MSG("Starting I2S");
-
 
316
sdcard_access_allowed=1;
313
sdcard_access_allowed=1;
317
//(void) MIOS32_I2S_Start((u32 *)&sample_buffer[0], SAMPLE_BUFFER_SIZE, &SYNTH_ReloadSampleBuffer); // Restart transfers 
-
 
318
#endif
314
#endif
319
}
315
}
320
316
321
/////////////////////////////////////////////////////////////////////////////
317
/////////////////////////////////////////////////////////////////////////////
322
// This hook is called before the shift register chain is scanned
318
// This hook is called before the shift register chain is scanned