Subversion Repositories svn.mios32

Rev

Rev 2611 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2611 Rev 2633
Line 1... Line 1...
1
// $Id: seq_file_c.c 2611 2018-12-18 21:58:09Z tk $
1
// $Id: seq_file_c.c 2633 2019-01-04 11:10:04Z tk $
2
/*
2
/*
3
 * Config File access functions
3
 * Config File access functions
4
 *
4
 *
5
 * NOTE: before accessing the SD Card, the upper level function should
5
 * NOTE: before accessing the SD Card, the upper level function should
6
 * synchronize with the SD Card semaphore!
6
 * synchronize with the SD Card semaphore!
Line 307... Line 307...
307
          seq_core_options.SYNCHED_MUTE = value;
307
          seq_core_options.SYNCHED_MUTE = value;
308
      } else if( strcmp(parameter, "SynchedUnmute") == 0 ) {
308
      } else if( strcmp(parameter, "SynchedUnmute") == 0 ) {
309
        s32 value = get_dec_range(word, parameter, 0, 1);
309
        s32 value = get_dec_range(word, parameter, 0, 1);
310
        if( value >= 0 )
310
        if( value >= 0 )
311
          seq_core_options.SYNCHED_UNMUTE = value;
311
          seq_core_options.SYNCHED_UNMUTE = value;
-
 
312
      } else if( strcmp(parameter, "UnmuteOnPatternChange") == 0 ) {
-
 
313
        s32 value = get_dec_range(word, parameter, 0, 1);
-
 
314
        if( value >= 0 )
-
 
315
          seq_core_options.UNMUTE_ON_PATTERN_CHANGE = value;
312
      } else if( strcmp(parameter, "DontResetLatchedPc") == 0 ) {
316
      } else if( strcmp(parameter, "DontResetLatchedPc") == 0 ) {
313
        s32 value = get_dec_range(word, parameter, 0, 1);
317
        s32 value = get_dec_range(word, parameter, 0, 1);
314
        if( value >= 0 )
318
        if( value >= 0 )
315
          seq_core_options.PATTERN_CHANGE_DONT_RESET_LATCHED_PC = value;
319
          seq_core_options.PATTERN_CHANGE_DONT_RESET_LATCHED_PC = value;
316
      } else if( strcmp(parameter, "RATOPC") == 0 ) {
320
      } else if( strcmp(parameter, "RATOPC") == 0 ) {
Line 975... Line 979...
975
979
976
  sprintf(line_buffer, "SynchedMute %d\n", seq_core_options.SYNCHED_MUTE);
980
  sprintf(line_buffer, "SynchedMute %d\n", seq_core_options.SYNCHED_MUTE);
977
  FLUSH_BUFFER;
981
  FLUSH_BUFFER;
978
982
979
  sprintf(line_buffer, "SynchedUnmute %d\n", seq_core_options.SYNCHED_UNMUTE);
983
  sprintf(line_buffer, "SynchedUnmute %d\n", seq_core_options.SYNCHED_UNMUTE);
-
 
984
  FLUSH_BUFFER;
-
 
985
-
 
986
  sprintf(line_buffer, "UnmuteOnPatternChange %d\n", seq_core_options.UNMUTE_ON_PATTERN_CHANGE);
980
  FLUSH_BUFFER;
987
  FLUSH_BUFFER;
981
988
982
  sprintf(line_buffer, "DontResetLatchedPc %d\n", seq_core_options.PATTERN_CHANGE_DONT_RESET_LATCHED_PC);
989
  sprintf(line_buffer, "DontResetLatchedPc %d\n", seq_core_options.PATTERN_CHANGE_DONT_RESET_LATCHED_PC);
983
  FLUSH_BUFFER;
990
  FLUSH_BUFFER;
984
991