File tree Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ void CConfig::Load (void)
220
220
}
221
221
222
222
m_nMasterVolume = m_Properties.GetNumber (" MasterVolume" , 64 );
223
+
224
+ m_nDefaultScreen = m_Properties.GetNumber (" DefaultScreen" , 0 );
223
225
}
224
226
225
227
unsigned CConfig::GetToneGenerators (void ) const
Original file line number Diff line number Diff line change @@ -242,6 +242,8 @@ class CConfig // Configuration for MiniDexed
242
242
243
243
unsigned GetMasterVolume () const { return m_nMasterVolume; }
244
244
245
+ unsigned GetDefaultScreen () const { return m_nDefaultScreen; }
246
+
245
247
// Network
246
248
bool GetNetworkEnabled (void ) const ;
247
249
bool GetNetworkDHCP (void ) const ;
@@ -371,6 +373,8 @@ class CConfig // Configuration for MiniDexed
371
373
unsigned m_bPerformanceSelectChannel;
372
374
373
375
unsigned m_nMasterVolume; // Master volume 0-127
376
+
377
+ unsigned m_nDefaultScreen; // 0 Default, 1 Performance
374
378
375
379
// Network
376
380
bool m_bNetworkEnabled;
Original file line number Diff line number Diff line change @@ -367,6 +367,8 @@ bool CMiniDexed::Initialize (void)
367
367
368
368
m_pSoundDevice->Start ();
369
369
370
+ m_UI.LoadDefaultScreen ();
371
+
370
372
#ifdef ARM_ALLOW_MULTI_CORE
371
373
// start secondary cores
372
374
if (!CMultiCoreSupport::Initialize ())
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ QuadDAC8Chan=0
16
16
# Master Volume (0-127)
17
17
MasterVolume =64
18
18
19
+ # Default Screen (0=Default, 1=Performance Load)
20
+ DefaultScreen =0
21
+
19
22
# MIDI
20
23
MIDIBaudRate =31250
21
24
# MIDIThru=umidi1,ttyS1
Original file line number Diff line number Diff line change @@ -199,6 +199,17 @@ bool CUserInterface::Initialize (void)
199
199
return true ;
200
200
}
201
201
202
+ void CUserInterface::LoadDefaultScreen ()
203
+ {
204
+ // performance load
205
+ if (m_pConfig->GetDefaultScreen () == 1 )
206
+ {
207
+ m_Menu.EventHandler (CUIMenu::MenuEventStepDown);
208
+ m_Menu.EventHandler (CUIMenu::MenuEventSelect);
209
+ m_Menu.EventHandler (CUIMenu::MenuEventSelect);
210
+ }
211
+ }
212
+
202
213
void CUserInterface::Process (void )
203
214
{
204
215
if (m_pLCDBuffered)
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ class CUserInterface
42
42
43
43
bool Initialize (void );
44
44
45
+ void LoadDefaultScreen ();
46
+
45
47
void Process (void );
46
48
47
49
void ParameterChanged (void );
You can’t perform that action at this time.
0 commit comments