Skip to content

Commit

Permalink
All checkboxes replaced by lithning buttons.(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredvs committed Nov 21, 2020
1 parent 97e93b8 commit 9175f46
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 240 deletions.
8 changes: 4 additions & 4 deletions src/commander.mfm
Original file line number Diff line number Diff line change
Expand Up @@ -1751,8 +1751,8 @@ object commanderfo: tcommanderfo
face.template = mainfo.tfaceorange
taborder = 20
visible = False
bounds_x = 34
bounds_y = 48
bounds_x = 33
bounds_y = 49
bounds_cx = 221
bounds_cy = 36
font.name = 'stf_default'
Expand Down Expand Up @@ -3062,8 +3062,8 @@ object commanderfo: tcommanderfo
height = 32
options = [bmo_masked, bmo_graymask]
count = 2
left = 322
top = 31
left = 320
top = 10
image = {
00000000120000004000000040000000B4180000000000000000000000000000
000000000000000000000000000000000000000000000045DFCEC301D1B4A301
Expand Down
4 changes: 2 additions & 2 deletions src/commander_mfm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2293,7 +2293,7 @@ implementation
102,97,99,101,46,116,101,109,112,108,97,116,101,7,18,109,97,105,110,102,
111,46,116,102,97,99,101,111,114,97,110,103,101,8,116,97,98,111,114,100,
101,114,2,20,7,118,105,115,105,98,108,101,8,8,98,111,117,110,100,115,
95,120,2,34,8,98,111,117,110,100,115,95,121,2,48,9,98,111,117,110,
95,120,2,33,8,98,111,117,110,100,115,95,121,2,49,9,98,111,117,110,
100,115,95,99,120,3,221,0,9,98,111,117,110,100,115,95,99,121,2,36,
9,102,111,110,116,46,110,97,109,101,6,11,115,116,102,95,100,101,102,97,
117,108,116,15,102,111,110,116,46,108,111,99,97,108,112,114,111,112,115,11,
Expand Down Expand Up @@ -4088,7 +4088,7 @@ implementation
116,104,2,32,6,104,101,105,103,104,116,2,32,7,111,112,116,105,111,110,
115,11,10,98,109,111,95,109,97,115,107,101,100,12,98,109,111,95,103,114,
97,121,109,97,115,107,0,5,99,111,117,110,116,2,2,4,108,101,102,116,
3,66,1,3,116,111,112,2,31,5,105,109,97,103,101,10,236,40,0,0,
3,64,1,3,116,111,112,2,10,5,105,109,97,103,101,10,236,40,0,0,
0,0,0,0,18,0,0,0,64,0,0,0,64,0,0,0,180,24,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,223,206,195,1,
Expand Down
70 changes: 39 additions & 31 deletions src/main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2163,20 +2163,20 @@ waveforec.trackbar1.face.template := recorderfo.tfacerecorder;
songplayerfo.llength.font.color := thecolor1;
songplayer2fo.llength.font.color := thecolor2;

songplayerfo.cbloop.frame.font.color := thecolor1;
songplayer2fo.cbloop.frame.font.color := thecolor2;
// songplayerfo.cbloop.frame.font.color := thecolor1;
// songplayer2fo.cbloop.frame.font.color := thecolor2;

songplayerfo.cbtempo.frame.font.color := thecolor1;
songplayer2fo.cbtempo.frame.font.color := thecolor2;
// songplayerfo.cbtempo.frame.font.color := thecolor1;
// songplayer2fo.cbtempo.frame.font.color := thecolor2;

songplayerfo.waveformcheck.frame.font.color := thecolor1;
songplayer2fo.waveformcheck.frame.font.color := thecolor2;

songplayerfo.playreverse.frame.font.color := thecolor1;
songplayer2fo.playreverse.frame.font.color := thecolor2;

songplayerfo.setmono.frame.font.color := thecolor1;
songplayer2fo.setmono.frame.font.color := thecolor2;
// songplayerfo.setmono.frame.font.color := thecolor1;
// songplayer2fo.setmono.frame.font.color := thecolor2;

songplayerfo.tstringdisp2.font.color := thecolor1;
songplayer2fo.tstringdisp2.font.color := thecolor2;
Expand All @@ -2190,13 +2190,14 @@ waveforec.trackbar1.face.template := recorderfo.tfacerecorder;
songplayerfo.tstringdisp1.color := cl_black;
songplayer2fo.tstringdisp1.color := cl_black;

{
songplayerfo.cbloop.colorglyph := thecolor1;
songplayer2fo.cbloop.colorglyph := thecolor2;
songplayerfo.cbtempo.colorglyph := thecolor1;
songplayer2fo.cbtempo.colorglyph := thecolor2;
songplayerfo.waveformcheck.colorglyph := thecolor1;
songplayer2fo.waveformcheck.colorglyph := thecolor2;

}
songplayerfo.playreverse.frame.font.color := thecolor1;
songplayer2fo.playreverse.frame.font.color := thecolor2;

Expand Down Expand Up @@ -2445,14 +2446,16 @@ EQEN.face.template := recorderfo.tfacerecorder;
commanderfo.nameinput.font.color := ltblack;
commanderfo.genleftvolvalue.font.color := ltblack;
commanderfo.genrightvolvalue.font.color := ltblack;
{
commanderfo.vuin.colorglyph := ltblack;
commanderfo.vuin.frame.font.color := ltblack;
commanderfo.directmix.colorglyph := ltblack;
commanderfo.directmix.frame.font.color := ltblack;
commanderfo.speccalc.colorglyph := ltblack;
commanderfo.speccalc.frame.font.color := ltblack;

}

commanderfo.volumeleft1val.font.color := ltblack;
commanderfo.volumeleft2val.font.color := ltblack;

Expand All @@ -2465,7 +2468,7 @@ EQEN.face.template := recorderfo.tfacerecorder;

commanderfo.butinput.colorglyph := ltblack;
commanderfo.butinput.frame.font.color := ltblack;

{
commanderfo.automix.colorglyph := ltblack;
commanderfo.automix.frame.font.color := ltblack;
Expand All @@ -2480,7 +2483,7 @@ EQEN.face.template := recorderfo.tfacerecorder;
commanderfo.linkvolgen.colorglyph := ltblack;
commanderfo.linkvolgen.frame.font.color := ltblack;

}
commanderfo.timemix.font.color := ltblack;

commanderfo.timemix.frame.colorglyph := ltblack;
Expand Down Expand Up @@ -2776,20 +2779,20 @@ // spect1.face.template := recorderfo.tfacerecorder;
songplayerfo.llength.font.color := cl_default;
songplayer2fo.llength.font.color := cl_default;

songplayerfo.cbloop.frame.font.color := ltblack;
songplayer2fo.cbloop.frame.font.color := ltblack;
// songplayerfo.cbloop.frame.font.color := ltblack;
// songplayer2fo.cbloop.frame.font.color := ltblack;

songplayerfo.cbtempo.frame.font.color := ltblack;
songplayer2fo.cbtempo.frame.font.color := ltblack;
// songplayerfo.cbtempo.frame.font.color := ltblack;
// songplayer2fo.cbtempo.frame.font.color := ltblack;

songplayerfo.waveformcheck.frame.font.color := ltblack;
songplayer2fo.waveformcheck.frame.font.color := ltblack;
//songplayerfo.waveformcheck.frame.font.color := ltblack;
// songplayer2fo.waveformcheck.frame.font.color := ltblack;

songplayerfo.playreverse.frame.font.color := ltblack;
songplayer2fo.playreverse.frame.font.color := ltblack;
// songplayerfo.playreverse.frame.font.color := ltblack;
// songplayer2fo.playreverse.frame.font.color := ltblack;

songplayerfo.setmono.frame.font.color := ltblack;
songplayer2fo.setmono.frame.font.color := ltblack;
// songplayerfo.setmono.frame.font.color := ltblack;
// songplayer2fo.setmono.frame.font.color := ltblack;

songplayerfo.tstringdisp2.font.color := ltblack;
songplayer2fo.tstringdisp2.font.color := ltblack;
Expand All @@ -2799,7 +2802,9 @@ // spect1.face.template := recorderfo.tfacerecorder;

songplayerfo.button2.font.color := ltblack;
songplayer2fo.button2.font.color := ltblack;



{
songplayerfo.cbloop.colorglyph := ltblack;
songplayer2fo.cbloop.colorglyph := ltblack;
songplayerfo.cbtempo.colorglyph := ltblack;
Expand All @@ -2822,6 +2827,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
songplayerfo.edvolleft.frame.colorglyph := ltblack;
songplayer2fo.edvolleft.frame.colorglyph := ltblack;
}
recorderfo.edvol.frame.colorglyph := ltblack;
recorderfo.edvolr.frame.colorglyph := ltblack;
recorderfo.edtempo.frame.colorglyph := ltblack;
Expand Down Expand Up @@ -3055,7 +3061,7 @@ // spect1.face.template := recorderfo.tfacerecorder;

commanderfo.genvolright.scrollbar.face.template := commanderfo.tfaceslider;
commanderfo.genvolright.scrollbar.face1.template := commanderfo.tfaceslider;

{
commanderfo.vuin.colorglyph := ltblack;
commanderfo.vuin.frame.font.color := ltblack;
Expand All @@ -3064,10 +3070,10 @@ // spect1.face.template := recorderfo.tfacerecorder;
commanderfo.speccalc.colorglyph := ltblack;
commanderfo.speccalc.frame.font.color := ltblack;

}
commanderfo.butinput.colorglyph := ltblack;
commanderfo.butinput.frame.font.color := ltblack;

{
commanderfo.automix.colorglyph := ltblack;
commanderfo.automix.frame.font.color := ltblack;
Expand All @@ -3082,7 +3088,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
commanderfo.linkvolgen.colorglyph := ltblack;
commanderfo.linkvolgen.frame.font.color := ltblack;

}
commanderfo.volumeleft1.scrollbar.face.template := commanderfo.tfaceslider;
commanderfo.volumeleft1.scrollbar.face1.template := commanderfo.tfaceslider;
commanderfo.volumeleft2.scrollbar.face.template := commanderfo.tfaceslider;
Expand Down Expand Up @@ -3475,6 +3481,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
songplayerfo.llength.font.color := ltblank;
songplayer2fo.llength.font.color := ltblank;

{
songplayerfo.cbloop.colorglyph := ltblank;
songplayer2fo.cbloop.colorglyph := ltblank;
songplayerfo.cbtempo.colorglyph := ltblank;
Expand All @@ -3496,7 +3503,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
songplayerfo.edvolleft.frame.colorglyph := ltblank;
songplayer2fo.edvolleft.frame.colorglyph := ltblank;

}
recorderfo.edvol.frame.colorglyph := ltblank;
recorderfo.edvolr.frame.colorglyph := ltblank;

Expand Down Expand Up @@ -3533,7 +3540,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
songplayerfo.historyfn.dropdown.colorclient := ltblack;
songplayer2fo.historyfn.dropdown.colorclient := ltblack;


{
songplayerfo.cbloop.frame.font.color := ltblank;
songplayer2fo.cbloop.frame.font.color := ltblank;
Expand All @@ -3548,7 +3555,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
songplayerfo.setmono.frame.font.color := ltblank;
songplayer2fo.setmono.frame.font.color := ltblank;

}
songplayerfo.tstringdisp2.font.color := ltblank;
songplayer2fo.tstringdisp2.font.color := ltblank;

Expand Down Expand Up @@ -3748,7 +3755,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
commanderfo.tslider3val.font.color := ltblank;

commanderfo.timemix.font.color := ltblank;

{
commanderfo.vuin.colorglyph := ltblank;
commanderfo.vuin.frame.font.color := ltblank;
Expand All @@ -3757,13 +3764,14 @@ // spect1.face.template := recorderfo.tfacerecorder;
commanderfo.speccalc.colorglyph := ltblank;
commanderfo.speccalc.frame.font.color := ltblank;

}
commanderfo.butinput.colorglyph := ltblank;
commanderfo.butinput.frame.font.color := ltblank;

commanderfo.automix.colorglyph := ltblank;
commanderfo.automix.frame.font.color := ltblank;

{
commanderfo.guimix.colorglyph := ltblank;
commanderfo.guimix.frame.font.color := ltblank;
Expand All @@ -3775,7 +3783,7 @@ // spect1.face.template := recorderfo.tfacerecorder;
commanderfo.linkvolgen.colorglyph := ltblank;
commanderfo.linkvolgen.frame.font.color := ltblank;

}
commanderfo.timemix.frame.colorglyph := ltblank;

commanderfo.tfacegriptab.template.fade_color.items[0] := $EDEDED;
Expand Down
10 changes: 5 additions & 5 deletions src/songplayer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ procedure tsongplayerfo.doplayerstart(const Sender: TObject);
// If PlayerIndex exists already, it will be overwriten...

Inputindex1 := uos_AddFromFile(theplayer, PChar(ansistring(historyfn.Value)), -1,
samformat, -1);
samformat, 1024 * 8);

// add input from audio file with custom parameters
// FileName : filename of audio file
Expand All @@ -917,7 +917,7 @@ procedure tsongplayerfo.doplayerstart(const Sender: TObject);

Outputindex1 := uos_AddIntoDevOut(theplayer, configfo.devoutcfg.Value, configfo.latplay.Value, uos_InputGetSampleRate(theplayer, Inputindex1),
// uos_InputGetChannels(theplayer, Inputindex1), samformat,-1, -1);
uos_InputGetChannels(theplayer, Inputindex1), samformat, 1024 * 16, -1);
uos_InputGetChannels(theplayer, Inputindex1), samformat, 1024 * 8, -1);


// Add a Output into Device Output
Expand Down Expand Up @@ -1192,7 +1192,8 @@ procedure tsongplayerfo.doplayerstart(const Sender: TObject);
// PlayerIndex : from 0 to what your computer can do !
// If PlayerIndex exists already, it will be overwriten...

Inputindex2 := uos_AddFromFile(theplayer2, PChar(ansistring(historyfn.Value)), -1, samformat, -1);
Inputindex2 := uos_AddFromFile(theplayer2, PChar(ansistring(historyfn.Value)),
-1, samformat, 1024 * 8);

// add input from audio file with custom parameters
// FileName : filename of audio file
Expand All @@ -1213,10 +1214,9 @@ procedure tsongplayerfo.doplayerstart(const Sender: TObject);
configfo.latplay.Value := -1;

Outputindex2 := uos_AddIntoDevOut(theplayer2, configfo.devoutcfg.Value, configfo.latplay.Value, uos_InputGetSampleRate(theplayer2, Inputindex2),
uos_InputGetChannels(theplayer2, Inputindex2), samformat, 1024 * 16, -1);
uos_InputGetChannels(theplayer2, Inputindex2), samformat, 1024 * 8, -1);
//uos_InputGetChannels(theplayer2, Inputindex2), samformat, -1, -1);


// Add a Output into Device Output
// Device ( -1 is default device )
// Latency ( -1 is latency suggested )
Expand Down
Loading

0 comments on commit 9175f46

Please sign in to comment.