home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD5470532000.psc / Form4.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-05-04  |  60.5 KB  |  1,823 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form Form4 
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "S.E.C CD Player + Mixer"
  7.    ClientHeight    =   3525
  8.    ClientLeft      =   150
  9.    ClientTop       =   435
  10.    ClientWidth     =   10035
  11.    DrawWidth       =   4
  12.    LinkTopic       =   "Form4"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3525
  16.    ScaleWidth      =   10035
  17.    StartUpPosition =   3  'Windows Default
  18.    Begin VB.Frame Frame12 
  19.       Caption         =   "Pc spk"
  20.       Height          =   2325
  21.       Left            =   8430
  22.       TabIndex        =   38
  23.       Top             =   1170
  24.       Width           =   705
  25.       Begin VB.TextBox Text7 
  26.          Alignment       =   2  'Center
  27.          BackColor       =   &H80000007&
  28.          ForeColor       =   &H0000FFFF&
  29.          Height          =   285
  30.          Left            =   90
  31.          TabIndex        =   87
  32.          TabStop         =   0   'False
  33.          Text            =   "32768"
  34.          Top             =   210
  35.          Width           =   555
  36.       End
  37.       Begin VB.CheckBox Check10 
  38.          BackColor       =   &H8000000B&
  39.          Height          =   210
  40.          Left            =   90
  41.          TabIndex        =   73
  42.          Top             =   1800
  43.          Width           =   225
  44.       End
  45.       Begin VB.PictureBox Picture9 
  46.          Height          =   330
  47.          Left            =   375
  48.          ScaleHeight     =   270
  49.          ScaleWidth      =   180
  50.          TabIndex        =   70
  51.          ToolTipText     =   "Mute"
  52.          Top             =   1680
  53.          Width           =   240
  54.          Begin VB.OptionButton Option17 
  55.             BackColor       =   &H000000FF&
  56.             Height          =   150
  57.             Left            =   0
  58.             Style           =   1  'Graphical
  59.             TabIndex        =   72
  60.             ToolTipText     =   "Unmute"
  61.             Top             =   0
  62.             Value           =   -1  'True
  63.             Width           =   195
  64.          End
  65.          Begin VB.OptionButton Option18 
  66.             BackColor       =   &H000000FF&
  67.             Height          =   150
  68.             Left            =   0
  69.             Style           =   1  'Graphical
  70.             TabIndex        =   71
  71.             ToolTipText     =   "Mute"
  72.             Top             =   135
  73.             Width           =   195
  74.          End
  75.       End
  76.       Begin ComctlLib.Slider Slider7 
  77.          Height          =   1230
  78.          Left            =   30
  79.          TabIndex        =   88
  80.          Top             =   525
  81.          Width           =   600
  82.          _ExtentX        =   1058
  83.          _ExtentY        =   2170
  84.          _Version        =   327682
  85.          Orientation     =   1
  86.          LargeChange     =   200
  87.          Max             =   65535
  88.          SelStart        =   32768
  89.          TickStyle       =   2
  90.          TickFrequency   =   3265
  91.          Value           =   32768
  92.       End
  93.    End
  94.    Begin VB.Frame Frame11 
  95.       Caption         =   "I25in"
  96.       Height          =   2325
  97.       Left            =   7680
  98.       TabIndex        =   37
  99.       Top             =   1170
  100.       Width           =   705
  101.       Begin VB.TextBox Text8 
  102.          Alignment       =   2  'Center
  103.          BackColor       =   &H80000007&
  104.          ForeColor       =   &H0000FFFF&
  105.          Height          =   285
  106.          Left            =   90
  107.          TabIndex        =   85
  108.          TabStop         =   0   'False
  109.          Text            =   "32768"
  110.          Top             =   210
  111.          Width           =   555
  112.       End
  113.       Begin VB.CheckBox Check9 
  114.          BackColor       =   &H8000000B&
  115.          Height          =   210
  116.          Left            =   90
  117.          TabIndex        =   69
  118.          Top             =   1800
  119.          Width           =   210
  120.       End
  121.       Begin VB.PictureBox Picture10 
  122.          Height          =   330
  123.          Left            =   375
  124.          ScaleHeight     =   270
  125.          ScaleWidth      =   180
  126.          TabIndex        =   66
  127.          ToolTipText     =   "Mute"
  128.          Top             =   1680
  129.          Width           =   240
  130.          Begin VB.OptionButton Option19 
  131.             BackColor       =   &H000000FF&
  132.             Height          =   150
  133.             Left            =   0
  134.             Style           =   1  'Graphical
  135.             TabIndex        =   68
  136.             ToolTipText     =   "Mute"
  137.             Top             =   135
  138.             Width           =   195
  139.          End
  140.          Begin VB.OptionButton Option20 
  141.             BackColor       =   &H000000FF&
  142.             Height          =   150
  143.             Left            =   0
  144.             Style           =   1  'Graphical
  145.             TabIndex        =   67
  146.             ToolTipText     =   "Unmute"
  147.             Top             =   0
  148.             Value           =   -1  'True
  149.             Width           =   195
  150.          End
  151.       End
  152.       Begin ComctlLib.Slider Slider8 
  153.          Height          =   1230
  154.          Left            =   30
  155.          TabIndex        =   86
  156.          Top             =   525
  157.          Width           =   600
  158.          _ExtentX        =   1058
  159.          _ExtentY        =   2170
  160.          _Version        =   327682
  161.          Orientation     =   1
  162.          LargeChange     =   200
  163.          Max             =   65535
  164.          SelStart        =   32768
  165.          TickStyle       =   2
  166.          TickFrequency   =   3265
  167.          Value           =   32768
  168.       End
  169.    End
  170.    Begin VB.Frame Frame10 
  171.       Caption         =   "MIDI"
  172.       Height          =   2325
  173.       Left            =   6930
  174.       TabIndex        =   36
  175.       Top             =   1170
  176.       Width           =   705
  177.       Begin VB.TextBox Text5 
  178.          Alignment       =   2  'Center
  179.          BackColor       =   &H80000007&
  180.          ForeColor       =   &H0000FFFF&
  181.          Height          =   285
  182.          Left            =   90
  183.          TabIndex        =   83
  184.          TabStop         =   0   'False
  185.          Text            =   "32768"
  186.          Top             =   210
  187.          Width           =   555
  188.       End
  189.       Begin VB.CheckBox Check8 
  190.          BackColor       =   &H8000000B&
  191.          Height          =   210
  192.          Left            =   90
  193.          TabIndex        =   65
  194.          Top             =   1800
  195.          Width           =   210
  196.       End
  197.       Begin VB.PictureBox Picture5 
  198.          Height          =   330
  199.          Left            =   390
  200.          ScaleHeight     =   270
  201.          ScaleWidth      =   180
  202.          TabIndex        =   62
  203.          ToolTipText     =   "Mute"
  204.          Top             =   1680
  205.          Width           =   240
  206.          Begin VB.OptionButton Option10 
  207.             BackColor       =   &H000000FF&
  208.             Height          =   150
  209.             Left            =   0
  210.             Style           =   1  'Graphical
  211.             TabIndex        =   64
  212.             ToolTipText     =   "Mute"
  213.             Top             =   135
  214.             Width           =   195
  215.          End
  216.          Begin VB.OptionButton Option9 
  217.             BackColor       =   &H000000FF&
  218.             Height          =   150
  219.             Left            =   0
  220.             Style           =   1  'Graphical
  221.             TabIndex        =   63
  222.             ToolTipText     =   "Unmute"
  223.             Top             =   0
  224.             Value           =   -1  'True
  225.             Width           =   195
  226.          End
  227.       End
  228.       Begin ComctlLib.Slider Slider5 
  229.          Height          =   1230
  230.          Left            =   30
  231.          TabIndex        =   84
  232.          Top             =   525
  233.          Width           =   600
  234.          _ExtentX        =   1058
  235.          _ExtentY        =   2170
  236.          _Version        =   327682
  237.          Orientation     =   1
  238.          LargeChange     =   200
  239.          Max             =   65535
  240.          SelStart        =   32768
  241.          TickStyle       =   2
  242.          TickFrequency   =   3265
  243.          Value           =   32768
  244.       End
  245.    End
  246.    Begin VB.Frame Frame9 
  247.       Caption         =   "TAD"
  248.       Height          =   2325
  249.       Left            =   6180
  250.       TabIndex        =   35
  251.       Top             =   1170
  252.       Width           =   705
  253.       Begin VB.TextBox Text4 
  254.          Alignment       =   2  'Center
  255.          BackColor       =   &H80000007&
  256.          ForeColor       =   &H0000FFFF&
  257.          Height          =   285
  258.          Left            =   90
  259.          TabIndex        =   81
  260.          TabStop         =   0   'False
  261.          Text            =   "32768"
  262.          Top             =   210
  263.          Width           =   555
  264.       End
  265.       Begin VB.CheckBox Check7 
  266.          BackColor       =   &H8000000B&
  267.          Height          =   210
  268.          Left            =   90
  269.          TabIndex        =   61
  270.          Top             =   1800
  271.          Width           =   210
  272.       End
  273.       Begin VB.PictureBox Picture6 
  274.          Height          =   330
  275.          Left            =   375
  276.          ScaleHeight     =   270
  277.          ScaleWidth      =   180
  278.          TabIndex        =   58
  279.          ToolTipText     =   "Mute"
  280.          Top             =   1680
  281.          Width           =   240
  282.          Begin VB.OptionButton Option12 
  283.             BackColor       =   &H000000FF&
  284.             Height          =   150
  285.             Left            =   0
  286.             Style           =   1  'Graphical
  287.             TabIndex        =   60
  288.             ToolTipText     =   "Unmute"
  289.             Top             =   0
  290.             Value           =   -1  'True
  291.             Width           =   195
  292.          End
  293.          Begin VB.OptionButton Option11 
  294.             BackColor       =   &H000000FF&
  295.             Height          =   150
  296.             Left            =   0
  297.             Style           =   1  'Graphical
  298.             TabIndex        =   59
  299.             ToolTipText     =   "Mute"
  300.             Top             =   135
  301.             Width           =   195
  302.          End
  303.       End
  304.       Begin ComctlLib.Slider Slider4 
  305.          Height          =   1230
  306.          Left            =   30
  307.          TabIndex        =   82
  308.          Top             =   525
  309.          Width           =   600
  310.          _ExtentX        =   1058
  311.          _ExtentY        =   2170
  312.          _Version        =   327682
  313.          Orientation     =   1
  314.          LargeChange     =   200
  315.          Max             =   65535
  316.          SelStart        =   32768
  317.          TickStyle       =   2
  318.          TickFrequency   =   3265
  319.          Value           =   32768
  320.       End
  321.    End
  322.    Begin VB.Frame Frame8 
  323.       Caption         =   "Wave"
  324.       Height          =   2325
  325.       Left            =   5430
  326.       TabIndex        =   34
  327.       Top             =   1170
  328.       Width           =   705
  329.       Begin VB.TextBox Text3 
  330.          Alignment       =   2  'Center
  331.          BackColor       =   &H80000007&
  332.          ForeColor       =   &H0000FFFF&
  333.          Height          =   285
  334.          Left            =   90
  335.          TabIndex        =   79
  336.          TabStop         =   0   'False
  337.          Text            =   "32768"
  338.          Top             =   210
  339.          Width           =   555
  340.       End
  341.       Begin VB.CheckBox Check6 
  342.          BackColor       =   &H8000000B&
  343.          Height          =   210
  344.          Left            =   90
  345.          TabIndex        =   57
  346.          Top             =   1800
  347.          Width           =   210
  348.       End
  349.       Begin VB.PictureBox Picture2 
  350.          Height          =   330
  351.          Left            =   375
  352.          ScaleHeight     =   270
  353.          ScaleWidth      =   180
  354.          TabIndex        =   54
  355.          ToolTipText     =   "Mute"
  356.          Top             =   1680
  357.          Width           =   240
  358.          Begin VB.OptionButton Option4 
  359.             BackColor       =   &H000000FF&
  360.             Height          =   150
  361.             Left            =   0
  362.             Style           =   1  'Graphical
  363.             TabIndex        =   56
  364.             ToolTipText     =   "Mute"
  365.             Top             =   135
  366.             Width           =   195
  367.          End
  368.          Begin VB.OptionButton Option3 
  369.             BackColor       =   &H000000FF&
  370.             Height          =   150
  371.             Left            =   0
  372.             Style           =   1  'Graphical
  373.             TabIndex        =   55
  374.             ToolTipText     =   "Unmute"
  375.             Top             =   0
  376.             Value           =   -1  'True
  377.             Width           =   195
  378.          End
  379.       End
  380.       Begin ComctlLib.Slider sliderWaveOutVolume 
  381.          Height          =   1230
  382.          Left            =   30
  383.          TabIndex        =   80
  384.          Top             =   525
  385.          Width           =   600
  386.          _ExtentX        =   1058
  387.          _ExtentY        =   2170
  388.          _Version        =   327682
  389.          Orientation     =   1
  390.          LargeChange     =   200
  391.          Max             =   65535
  392.          SelStart        =   32768
  393.          TickStyle       =   2
  394.          TickFrequency   =   3265
  395.          Value           =   32768
  396.       End
  397.    End
  398.    Begin VB.Frame Frame7 
  399.       Caption         =   "AUX"
  400.       Height          =   2325
  401.       Left            =   4680
  402.       TabIndex        =   33
  403.       Top             =   1170
  404.       Width           =   705
  405.       Begin VB.TextBox txtWaveOutVolume 
  406.          Alignment       =   2  'Center
  407.          BackColor       =   &H80000007&
  408.          ForeColor       =   &H0000FFFF&
  409.          Height          =   285
  410.          Left            =   90
  411.          TabIndex        =   77
  412.          TabStop         =   0   'False
  413.          Text            =   "32768"
  414.          Top             =   210
  415.          Width           =   555
  416.       End
  417.       Begin VB.CheckBox Check5 
  418.          BackColor       =   &H8000000B&
  419.          Height          =   210
  420.          Left            =   90
  421.          TabIndex        =   53
  422.          Top             =   1800
  423.          Width           =   210
  424.       End
  425.       Begin VB.PictureBox Picture8 
  426.          Height          =   330
  427.          Left            =   375
  428.          ScaleHeight     =   270
  429.          ScaleWidth      =   180
  430.          TabIndex        =   50
  431.          ToolTipText     =   "Mute"
  432.          Top             =   1680
  433.          Width           =   240
  434.          Begin VB.OptionButton Option16 
  435.             BackColor       =   &H000000FF&
  436.             Height          =   150
  437.             Left            =   0
  438.             Style           =   1  'Graphical
  439.             TabIndex        =   52
  440.             ToolTipText     =   "Mute"
  441.             Top             =   135
  442.             Width           =   195
  443.          End
  444.          Begin VB.OptionButton Option15 
  445.             BackColor       =   &H000000FF&
  446.             Height          =   150
  447.             Left            =   0
  448.             Style           =   1  'Graphical
  449.             TabIndex        =   51
  450.             ToolTipText     =   "Unmute"
  451.             Top             =   0
  452.             Value           =   -1  'True
  453.             Width           =   195
  454.          End
  455.       End
  456.       Begin ComctlLib.Slider Slider3 
  457.          Height          =   1230
  458.          Left            =   30
  459.          TabIndex        =   78
  460.          Top             =   525
  461.          Width           =   600
  462.          _ExtentX        =   1058
  463.          _ExtentY        =   2170
  464.          _Version        =   327682
  465.          Orientation     =   1
  466.          LargeChange     =   200
  467.          Max             =   65535
  468.          SelStart        =   32768
  469.          TickStyle       =   2
  470.          TickFrequency   =   3265
  471.          Value           =   32768
  472.       End
  473.    End
  474.    Begin VB.Frame Frame6 
  475.       Caption         =   "Mic"
  476.       Height          =   2325
  477.       Left            =   3930
  478.       TabIndex        =   32
  479.       Top             =   1170
  480.       Width           =   705
  481.       Begin VB.TextBox Text2 
  482.          Alignment       =   2  'Center
  483.          BackColor       =   &H80000007&
  484.          ForeColor       =   &H0000FFFF&
  485.          Height          =   285
  486.          Left            =   90
  487.          TabIndex        =   75
  488.          TabStop         =   0   'False
  489.          Text            =   "32768"
  490.          Top             =   210
  491.          Width           =   555
  492.       End
  493.       Begin VB.CheckBox Check4 
  494.          BackColor       =   &H8000000B&
  495.          Height          =   210
  496.          Left            =   90
  497.          TabIndex        =   49
  498.          Top             =   1800
  499.          Width           =   210
  500.       End
  501.       Begin VB.PictureBox Picture4 
  502.          Height          =   330
  503.          Left            =   375
  504.          ScaleHeight     =   270
  505.          ScaleWidth      =   180
  506.          TabIndex        =   46
  507.          ToolTipText     =   "Mute"
  508.          Top             =   1680
  509.          Width           =   240
  510.          Begin VB.OptionButton Option8 
  511.             BackColor       =   &H000000FF&
  512.             Height          =   150
  513.             Left            =   0
  514.             Style           =   1  'Graphical
  515.             TabIndex        =   48
  516.             ToolTipText     =   "Unmute"
  517.             Top             =   0
  518.             Value           =   -1  'True
  519.             Width           =   195
  520.          End
  521.          Begin VB.OptionButton Option7 
  522.             BackColor       =   &H000000FF&
  523.             Height          =   150
  524.             Left            =   0
  525.             Style           =   1  'Graphical
  526.             TabIndex        =   47
  527.             ToolTipText     =   "Mute"
  528.             Top             =   135
  529.             Width           =   195
  530.          End
  531.       End
  532.       Begin ComctlLib.Slider Slider2 
  533.          Height          =   1230
  534.          Left            =   30
  535.          TabIndex        =   76
  536.          Top             =   525
  537.          Width           =   600
  538.          _ExtentX        =   1058
  539.          _ExtentY        =   2170
  540.          _Version        =   327682
  541.          Orientation     =   1
  542.          LargeChange     =   200
  543.          Max             =   65535
  544.          SelStart        =   32768
  545.          TickStyle       =   2
  546.          TickFrequency   =   3265
  547.          Value           =   32768
  548.       End
  549.    End
  550.    Begin VB.Frame Frame5 
  551.       Caption         =   "Line In"
  552.       Height          =   2325
  553.       Left            =   3180
  554.       TabIndex        =   31
  555.       Top             =   1170
  556.       Width           =   705
  557.       Begin VB.CheckBox Check3 
  558.          BackColor       =   &H8000000B&
  559.          Height          =   210
  560.          Left            =   90
  561.          TabIndex        =   45
  562.          Top             =   1800
  563.          Width           =   210
  564.       End
  565.       Begin VB.PictureBox Picture3 
  566.          Height          =   330
  567.          Left            =   390
  568.          ScaleHeight     =   270
  569.          ScaleWidth      =   180
  570.          TabIndex        =   42
  571.          ToolTipText     =   "Mute"
  572.          Top             =   1680
  573.          Width           =   240
  574.          Begin VB.OptionButton Option6 
  575.             BackColor       =   &H000000FF&
  576.             Height          =   150
  577.             Left            =   0
  578.             Style           =   1  'Graphical
  579.             TabIndex        =   44
  580.             ToolTipText     =   "Mute"
  581.             Top             =   135
  582.             Width           =   195
  583.          End
  584.          Begin VB.OptionButton Option5 
  585.             BackColor       =   &H000000FF&
  586.             Height          =   150
  587.             Left            =   0
  588.             Style           =   1  'Graphical
  589.             TabIndex        =   43
  590.             ToolTipText     =   "Unmute"
  591.             Top             =   0
  592.             Value           =   -1  'True
  593.             Width           =   195
  594.          End
  595.       End
  596.       Begin VB.TextBox Text9 
  597.          Alignment       =   2  'Center
  598.          BackColor       =   &H80000007&
  599.          ForeColor       =   &H0000FFFF&
  600.          Height          =   285
  601.          Left            =   90
  602.          TabIndex        =   40
  603.          TabStop         =   0   'False
  604.          Text            =   "32768"
  605.          Top             =   210
  606.          Width           =   555
  607.       End
  608.       Begin ComctlLib.Slider Slider9 
  609.          Height          =   1230
  610.          Left            =   30
  611.          TabIndex        =   41
  612.          Top             =   525
  613.          Width           =   600
  614.          _ExtentX        =   1058
  615.          _ExtentY        =   2170
  616.          _Version        =   327682
  617.          Orientation     =   1
  618.          LargeChange     =   200
  619.          Max             =   65535
  620.          SelStart        =   32768
  621.          TickStyle       =   2
  622.          TickFrequency   =   3265
  623.          Value           =   32768
  624.       End
  625.    End
  626.    Begin VB.Frame Frame4 
  627.       Caption         =   "Cd vol"
  628.       Height          =   2325
  629.       Left            =   2430
  630.       TabIndex        =   24
  631.       Top             =   1170
  632.       Width           =   705
  633.       Begin VB.PictureBox Picture7 
  634.          Height          =   330
  635.          Left            =   390
  636.          ScaleHeight     =   270
  637.          ScaleWidth      =   180
  638.          TabIndex        =   28
  639.          ToolTipText     =   "Mute"
  640.          Top             =   1680
  641.          Width           =   240
  642.          Begin VB.OptionButton Option14 
  643.             BackColor       =   &H000000FF&
  644.             Height          =   150
  645.             Left            =   0
  646.             Style           =   1  'Graphical
  647.             TabIndex        =   30
  648.             ToolTipText     =   "Unmute"
  649.             Top             =   0
  650.             Value           =   -1  'True
  651.             Width           =   195
  652.          End
  653.          Begin VB.OptionButton Option13 
  654.             BackColor       =   &H000000FF&
  655.             Height          =   150
  656.             Left            =   0
  657.             Style           =   1  'Graphical
  658.             TabIndex        =   29
  659.             ToolTipText     =   "Mute"
  660.             Top             =   135
  661.             Width           =   195
  662.          End
  663.       End
  664.       Begin VB.CheckBox Check2 
  665.          BackColor       =   &H8000000B&
  666.          Height          =   210
  667.          Left            =   90
  668.          TabIndex        =   27
  669.          Top             =   1800
  670.          Width           =   210
  671.       End
  672.       Begin VB.TextBox Text1 
  673.          Alignment       =   2  'Center
  674.          BackColor       =   &H80000007&
  675.          ForeColor       =   &H0000FFFF&
  676.          Height          =   285
  677.          Left            =   90
  678.          TabIndex        =   25
  679.          TabStop         =   0   'False
  680.          Text            =   "32768"
  681.          Top             =   210
  682.          Width           =   555
  683.       End
  684.       Begin ComctlLib.Slider Slider1 
  685.          Height          =   1230
  686.          Left            =   30
  687.          TabIndex        =   26
  688.          Top             =   525
  689.          Width           =   600
  690.          _ExtentX        =   1058
  691.          _ExtentY        =   2170
  692.          _Version        =   327682
  693.          Orientation     =   1
  694.          LargeChange     =   200
  695.          Max             =   65535
  696.          SelStart        =   32768
  697.          TickStyle       =   2
  698.          TickFrequency   =   3265
  699.          Value           =   32768
  700.       End
  701.    End
  702.    Begin VB.Frame Frame3 
  703.       Caption         =   "Master"
  704.       Height          =   2325
  705.       Left            =   1680
  706.       TabIndex        =   17
  707.       Top             =   1170
  708.       Width           =   705
  709.       Begin VB.CheckBox Check1 
  710.          BackColor       =   &H8000000B&
  711.          Height          =   210
  712.          Left            =   90
  713.          TabIndex        =   23
  714.          Top             =   1800
  715.          Width           =   240
  716.       End
  717.       Begin VB.PictureBox Picture1 
  718.          Height          =   330
  719.          Left            =   390
  720.          ScaleHeight     =   270
  721.          ScaleWidth      =   180
  722.          TabIndex        =   20
  723.          ToolTipText     =   "Mute"
  724.          Top             =   1680
  725.          Width           =   240
  726.          Begin VB.OptionButton Option1 
  727.             BackColor       =   &H000000FF&
  728.             Height          =   150
  729.             Left            =   0
  730.             Style           =   1  'Graphical
  731.             TabIndex        =   22
  732.             ToolTipText     =   "Unmute"
  733.             Top             =   0
  734.             Value           =   -1  'True
  735.             Width           =   195
  736.          End
  737.          Begin VB.OptionButton Option2 
  738.             BackColor       =   &H000000FF&
  739.             Height          =   150
  740.             Left            =   0
  741.             Style           =   1  'Graphical
  742.             TabIndex        =   21
  743.             ToolTipText     =   "Mute"
  744.             Top             =   135
  745.             Width           =   195
  746.          End
  747.       End
  748.       Begin VB.TextBox txtMasterVolume 
  749.          Alignment       =   2  'Center
  750.          BackColor       =   &H80000007&
  751.          ForeColor       =   &H0000FFFF&
  752.          Height          =   285
  753.          Left            =   90
  754.          TabIndex        =   18
  755.          TabStop         =   0   'False
  756.          Text            =   "32768"
  757.          Top             =   210
  758.          Width           =   555
  759.       End
  760.       Begin ComctlLib.Slider sliderMasterVolume 
  761.          Height          =   1230
  762.          Left            =   30
  763.          TabIndex        =   19
  764.          Top             =   510
  765.          Width           =   600
  766.          _ExtentX        =   1058
  767.          _ExtentY        =   2170
  768.          _Version        =   327682
  769.          Orientation     =   1
  770.          LargeChange     =   200
  771.          Max             =   65535
  772.          SelStart        =   32768
  773.          TickStyle       =   2
  774.          TickFrequency   =   3265
  775.          Value           =   32768
  776.       End
  777.       Begin MSComctlLib.Slider Slider19 
  778.          Height          =   225
  779.          Left            =   60
  780.          TabIndex        =   99
  781.          Top             =   2070
  782.          Width           =   600
  783.          _ExtentX        =   1058
  784.          _ExtentY        =   397
  785.          _Version        =   393216
  786.          LargeChange     =   10
  787.          SmallChange     =   5
  788.          Min             =   -32767
  789.          Max             =   32767
  790.          TickStyle       =   3
  791.       End
  792.    End
  793.    Begin VB.Frame Frame2 
  794.       Caption         =   "Treble"
  795.       Height          =   2325
  796.       Left            =   930
  797.       TabIndex        =   14
  798.       Top             =   1170
  799.       Width           =   705
  800.       Begin ComctlLib.Slider trebleslider 
  801.          Height          =   1770
  802.          Left            =   30
  803.          TabIndex        =   16
  804.          Top             =   510
  805.          Width           =   600
  806.          _ExtentX        =   1058
  807.          _ExtentY        =   3122
  808.          _Version        =   327682
  809.          Orientation     =   1
  810.          LargeChange     =   200
  811.          Max             =   65535
  812.          SelStart        =   32768
  813.          TickStyle       =   2
  814.          TickFrequency   =   3265
  815.          Value           =   32768
  816.       End
  817.       Begin VB.TextBox Treblesliderte 
  818.          Alignment       =   2  'Center
  819.          BackColor       =   &H80000007&
  820.          ForeColor       =   &H0000FFFF&
  821.          Height          =   285
  822.          Left            =   210
  823.          TabIndex        =   15
  824.          TabStop         =   0   'False
  825.          Text            =   "32768"
  826.          Top             =   210
  827.          Width           =   345
  828.       End
  829.    End
  830.    Begin VB.CommandButton Command1 
  831.       BackColor       =   &H00C0C0C0&
  832.       Caption         =   "EXIT"
  833.       BeginProperty Font 
  834.          Name            =   "MS Sans Serif"
  835.          Size            =   8.25
  836.          Charset         =   0
  837.          Weight          =   700
  838.          Underline       =   0   'False
  839.          Italic          =   0   'False
  840.          Strikethrough   =   0   'False
  841.       EndProperty
  842.       Height          =   330
  843.       Left            =   180
  844.       Style           =   1  'Graphical
  845.       TabIndex        =   10
  846.       Top             =   750
  847.       Width           =   735
  848.    End
  849.    Begin VB.CommandButton ftrack 
  850.       Caption         =   "Skip Forward"
  851.       Enabled         =   0   'False
  852.       BeginProperty Font 
  853.          Name            =   "MS Sans Serif"
  854.          Size            =   8.25
  855.          Charset         =   0
  856.          Weight          =   700
  857.          Underline       =   0   'False
  858.          Italic          =   0   'False
  859.          Strikethrough   =   0   'False
  860.       EndProperty
  861.       Height          =   330
  862.       Left            =   6420
  863.       Style           =   1  'Graphical
  864.       TabIndex        =   9
  865.       Top             =   750
  866.       Width           =   1320
  867.    End
  868.    Begin VB.CommandButton btrack 
  869.       Caption         =   "Skip Back"
  870.       Enabled         =   0   'False
  871.       BeginProperty Font 
  872.          Name            =   "MS Sans Serif"
  873.          Size            =   8.25
  874.          Charset         =   0
  875.          Weight          =   700
  876.          Underline       =   0   'False
  877.          Italic          =   0   'False
  878.          Strikethrough   =   0   'False
  879.       EndProperty
  880.       Height          =   330
  881.       Left            =   2340
  882.       Style           =   1  'Graphical
  883.       TabIndex        =   5
  884.       Top             =   750
  885.       Width           =   1320
  886.    End
  887.    Begin VB.CommandButton ff 
  888.       Caption         =   "Forward"
  889.       Enabled         =   0   'False
  890.       BeginProperty Font 
  891.          Name            =   "MS Sans Serif"
  892.          Size            =   8.25
  893.          Charset         =   0
  894.          Weight          =   700
  895.          Underline       =   0   'False
  896.          Italic          =   0   'False
  897.          Strikethrough   =   0   'False
  898.       EndProperty
  899.       Height          =   330
  900.       Left            =   5520
  901.       Style           =   1  'Graphical
  902.       TabIndex        =   4
  903.       Top             =   750
  904.       Width           =   855
  905.    End
  906.    Begin VB.CommandButton pause 
  907.       Caption         =   "Pause"
  908.       Enabled         =   0   'False
  909.       BeginProperty Font 
  910.          Name            =   "MS Sans Serif"
  911.          Size            =   8.25
  912.          Charset         =   0
  913.          Weight          =   700
  914.          Underline       =   0   'False
  915.          Italic          =   0   'False
  916.          Strikethrough   =   0   'False
  917.       EndProperty
  918.       Height          =   330
  919.       Left            =   7800
  920.       Style           =   1  'Graphical
  921.       TabIndex        =   3
  922.       Top             =   750
  923.       Width           =   1005
  924.    End
  925.    Begin VB.CommandButton play 
  926.       Caption         =   "Play"
  927.       Enabled         =   0   'False
  928.       BeginProperty Font 
  929.          Name            =   "MS Sans Serif"
  930.          Size            =   8.25
  931.          Charset         =   0
  932.          Weight          =   700
  933.          Underline       =   0   'False
  934.          Italic          =   0   'False
  935.          Strikethrough   =   0   'False
  936.       EndProperty
  937.       Height          =   330
  938.       Left            =   4620
  939.       Style           =   1  'Graphical
  940.       TabIndex        =   2
  941.       Top             =   750
  942.       Width           =   855
  943.    End
  944.    Begin VB.CommandButton stopbtn 
  945.       Caption         =   "Stop"
  946.       Enabled         =   0   'False
  947.       BeginProperty Font 
  948.          Name            =   "MS Sans Serif"
  949.          Size            =   8.25
  950.          Charset         =   0
  951.          Weight          =   700
  952.          Underline       =   0   'False
  953.          Italic          =   0   'False
  954.          Strikethrough   =   0   'False
  955.       EndProperty
  956.       Height          =   330
  957.       Left            =   1290
  958.       Style           =   1  'Graphical
  959.       TabIndex        =   1
  960.       Top             =   750
  961.       Width           =   1005
  962.    End
  963.    Begin VB.CommandButton rew 
  964.       Caption         =   "Rewind"
  965.       Enabled         =   0   'False
  966.       BeginProperty Font 
  967.          Name            =   "MS Sans Serif"
  968.          Size            =   8.25
  969.          Charset         =   0
  970.          Weight          =   700
  971.          Underline       =   0   'False
  972.          Italic          =   0   'False
  973.          Strikethrough   =   0   'False
  974.       EndProperty
  975.       Height          =   330
  976.       Left            =   3690
  977.       Style           =   1  'Graphical
  978.       TabIndex        =   0
  979.       Top             =   750
  980.       Width           =   870
  981.    End
  982.    Begin VB.Timer Timer1 
  983.       Enabled         =   0   'False
  984.       Interval        =   1000
  985.       Left            =   390
  986.       Top             =   285
  987.    End
  988.    Begin VB.Frame Frame1 
  989.       Caption         =   " Bass"
  990.       Height          =   2325
  991.       Left            =   180
  992.       TabIndex        =   11
  993.       Top             =   1170
  994.       Width           =   705
  995.       Begin VB.TextBox BassText 
  996.          Alignment       =   2  'Center
  997.          BackColor       =   &H80000007&
  998.          ForeColor       =   &H0000FFFF&
  999.          Height          =   285
  1000.          Left            =   210
  1001.          TabIndex        =   12
  1002.          TabStop         =   0   'False
  1003.          Text            =   "32768"
  1004.          Top             =   210
  1005.          Width           =   345
  1006.       End
  1007.       Begin ComctlLib.Slider BassSlider 
  1008.          Height          =   1770
  1009.          Left            =   30
  1010.          TabIndex        =   13
  1011.          Top             =   510
  1012.          Width           =   630
  1013.          _ExtentX        =   1111
  1014.          _ExtentY        =   3122
  1015.          _Version        =   327682
  1016.          Orientation     =   1
  1017.          LargeChange     =   200
  1018.          Max             =   65535
  1019.          SelStart        =   32768
  1020.          TickStyle       =   2
  1021.          TickFrequency   =   3265
  1022.          Value           =   32768
  1023.       End
  1024.    End
  1025.    Begin VB.Frame Frame13 
  1026.       Caption         =   "SBM"
  1027.       Height          =   2325
  1028.       Left            =   9180
  1029.       TabIndex        =   39
  1030.       Top             =   1170
  1031.       Width           =   705
  1032.       Begin VB.CheckBox Check11 
  1033.          BackColor       =   &H8000000B&
  1034.          Height          =   210
  1035.          Left            =   90
  1036.          TabIndex        =   74
  1037.          ToolTipText     =   "Links all selected faders to SBM fader"
  1038.          Top             =   1830
  1039.          Width           =   225
  1040.       End
  1041.       Begin ComctlLib.Slider Slider6 
  1042.          Height          =   1260
  1043.          Left            =   60
  1044.          TabIndex        =   89
  1045.          Top             =   510
  1046.          Width           =   600
  1047.          _ExtentX        =   1058
  1048.          _ExtentY        =   2223
  1049.          _Version        =   327682
  1050.          Orientation     =   1
  1051.          LargeChange     =   200
  1052.          Max             =   65535
  1053.          SelStart        =   32768
  1054.          TickStyle       =   1
  1055.          TickFrequency   =   3265
  1056.          Value           =   32768
  1057.       End
  1058.       Begin VB.Label Label11 
  1059.          Alignment       =   2  'Center
  1060.          AutoSize        =   -1  'True
  1061.          BackColor       =   &H8000000B&
  1062.          BackStyle       =   0  'Transparent
  1063.          Caption         =   "SBM"
  1064.          ForeColor       =   &H00000000&
  1065.          Height          =   195
  1066.          Left            =   300
  1067.          TabIndex        =   90
  1068.          Top             =   1830
  1069.          Width           =   375
  1070.       End
  1071.    End
  1072.    Begin VB.CommandButton eject0 
  1073.       Caption         =   "Eject"
  1074.       BeginProperty Font 
  1075.          Name            =   "MS Sans Serif"
  1076.          Size            =   8.25
  1077.          Charset         =   0
  1078.          Weight          =   700
  1079.          Underline       =   0   'False
  1080.          Italic          =   0   'False
  1081.          Strikethrough   =   0   'False
  1082.       EndProperty
  1083.       Height          =   330
  1084.       Left            =   9150
  1085.       Style           =   1  'Graphical
  1086.       TabIndex        =   7
  1087.       Top             =   735
  1088.       Width           =   735
  1089.    End
  1090.    Begin VB.CommandButton eject1 
  1091.       Caption         =   "Close"
  1092.       BeginProperty Font 
  1093.          Name            =   "MS Sans Serif"
  1094.          Size            =   8.25
  1095.          Charset         =   0
  1096.          Weight          =   700
  1097.          Underline       =   0   'False
  1098.          Italic          =   0   'False
  1099.          Strikethrough   =   0   'False
  1100.       EndProperty
  1101.       Height          =   330
  1102.       Left            =   9150
  1103.       Style           =   1  'Graphical
  1104.       TabIndex        =   8
  1105.       Top             =   735
  1106.       Width           =   735
  1107.    End
  1108.    Begin VB.CommandButton Command2 
  1109.       BackColor       =   &H00FFFF00&
  1110.       Caption         =   "MIXER"
  1111.       Height          =   330
  1112.       Left            =   8370
  1113.       Style           =   1  'Graphical
  1114.       TabIndex        =   6
  1115.       Top             =   750
  1116.       Visible         =   0   'False
  1117.       Width           =   195
  1118.    End
  1119.    Begin VB.Frame Frame14 
  1120.       Height          =   765
  1121.       Left            =   2940
  1122.       TabIndex        =   91
  1123.       Top             =   -60
  1124.       Width           =   4155
  1125.       Begin VB.TextBox timeWindow 
  1126.          Alignment       =   2  'Center
  1127.          BackColor       =   &H80000008&
  1128.          BeginProperty Font 
  1129.             Name            =   "Arial"
  1130.             Size            =   20.25
  1131.             Charset         =   0
  1132.             Weight          =   700
  1133.             Underline       =   0   'False
  1134.             Italic          =   0   'False
  1135.             Strikethrough   =   0   'False
  1136.          EndProperty
  1137.          ForeColor       =   &H0000FFFF&
  1138.          Height          =   570
  1139.          Left            =   90
  1140.          Locked          =   -1  'True
  1141.          TabIndex        =   92
  1142.          TabStop         =   0   'False
  1143.          Top             =   150
  1144.          Width           =   3975
  1145.       End
  1146.    End
  1147.    Begin VB.Frame Frame16 
  1148.       Height          =   765
  1149.       Left            =   7140
  1150.       TabIndex        =   93
  1151.       Top             =   -60
  1152.       Width           =   2865
  1153.       Begin VB.TextBox CD 
  1154.          Alignment       =   2  'Center
  1155.          BackColor       =   &H00000000&
  1156.          ForeColor       =   &H0000FFFF&
  1157.          Height          =   285
  1158.          Left            =   60
  1159.          Locked          =   -1  'True
  1160.          TabIndex        =   98
  1161.          TabStop         =   0   'False
  1162.          Text            =   "CD Player"
  1163.          Top             =   450
  1164.          Width           =   2745
  1165.       End
  1166.       Begin VB.Label tracktime 
  1167.          Alignment       =   2  'Center
  1168.          BackColor       =   &H80000008&
  1169.          BorderStyle     =   1  'Fixed Single
  1170.          ForeColor       =   &H0000FFFF&
  1171.          Height          =   270
  1172.          Left            =   60
  1173.          TabIndex        =   94
  1174.          Top             =   150
  1175.          Width           =   2745
  1176.       End
  1177.    End
  1178.    Begin VB.Frame Frame17 
  1179.       Height          =   765
  1180.       Left            =   30
  1181.       TabIndex        =   95
  1182.       Top             =   -60
  1183.       Width           =   2865
  1184.       Begin VB.Label totalplay 
  1185.          Alignment       =   2  'Center
  1186.          BackColor       =   &H80000008&
  1187.          BorderStyle     =   1  'Fixed Single
  1188.          ForeColor       =   &H0000FFFF&
  1189.          Height          =   270
  1190.          Left            =   60
  1191.          TabIndex        =   97
  1192.          Top             =   150
  1193.          Width           =   2745
  1194.       End
  1195.       Begin VB.Label trtime 
  1196.          Alignment       =   2  'Center
  1197.          BackColor       =   &H80000008&
  1198.          BorderStyle     =   1  'Fixed Single
  1199.          ForeColor       =   &H0000FFFF&
  1200.          Height          =   270
  1201.          Left            =   60
  1202.          TabIndex        =   96
  1203.          Top             =   450
  1204.          Width           =   2745
  1205.       End
  1206.    End
  1207. Attribute VB_Name = "Form4"
  1208. Attribute VB_GlobalNameSpace = False
  1209. Attribute VB_Creatable = False
  1210. Attribute VB_PredeclaredId = True
  1211. Attribute VB_Exposed = False
  1212. Option Explicit
  1213. Dim volR As Long
  1214. Dim volL As Long
  1215. Dim volume As Long
  1216. Dim mute As MIXERCONTROL
  1217. Dim unmute As MIXERCONTROL
  1218. Dim hmixer As Long             ' mixer handle
  1219. Dim VolCtrl As MIXERCONTROL    ' master volume control
  1220. Dim WavCtrl As MIXERCONTROL    ' wave output volume control
  1221. Dim CDVol As MIXERCONTROL      ' CD Volume
  1222. Dim LineVol As MIXERCONTROL    ' Line/In Volume
  1223. Dim MBOOST As MIXERCONTROL     ' Microphone Volume
  1224. Dim PSPKVol As MIXERCONTROL    ' PcSpeaker Volume
  1225. Dim AUXVol As MIXERCONTROL     ' Auxillary Volume
  1226. Dim TADVol As MIXERCONTROL     ' TAD-In Volume
  1227. Dim MIDIVol As MIXERCONTROL    ' Midi Volume
  1228. Dim I25InVol As MIXERCONTROL   ' I25In Volume
  1229. Dim Treble As MIXERCONTROL
  1230. Dim Bass As MIXERCONTROL
  1231. Dim rc As Long                 ' return code
  1232. Dim ok As Boolean              ' boolean return code
  1233. Dim fastForwardSpeed As Long    ' seconds to seek for ff/rew
  1234. Dim fPlaying As Boolean         ' true if CD is currently playing
  1235. Dim fCDLoaded As Boolean        ' true if CD is the the player
  1236. Dim numTracks As Integer        ' number of tracks on audio CD
  1237. Dim trackLength() As String     ' array containing length of each track
  1238. Dim track As Integer            ' current track
  1239. Dim min As Integer              ' current minute on track
  1240. Dim SEC As Integer              ' current second on track
  1241. Dim cmd As String               ' string to hold mci command strings
  1242. ' Send a MCI command string
  1243. ' If fShowError is true, display a message box on error
  1244. Private Function SendMCIString(cmd As String, fShowError As Boolean) As Boolean
  1245. Static rc As Long
  1246. Static errStr As String * 200
  1247. rc = mciSendString(cmd, 0, 0, hWnd)
  1248. If (fShowError And rc <> 0) Then
  1249.     mciGetErrorString rc, errStr, Len(errStr)
  1250.     SendMCIString "close all", False
  1251.     cmd = "close all"
  1252.     SendMCIString cmd, True
  1253.     Unload Form4
  1254. End If
  1255. SendMCIString = (rc = 0)
  1256. End Function
  1257. Private Sub Check11_Click()
  1258. If Check11.Value = 1 Then
  1259. Check1.Value = 1
  1260. Check2.Value = 1
  1261. Check3.Value = 1
  1262. Check4.Value = 1
  1263. Check5.Value = 1
  1264. Check6.Value = 1
  1265. Check7.Value = 1
  1266. Check8.Value = 1
  1267. Check9.Value = 1
  1268. Check10.Value = 1
  1269. End If
  1270. If Check11.Value = 0 Then
  1271. Check1.Value = 0
  1272. Check2.Value = 0
  1273. Check3.Value = 0
  1274. Check4.Value = 0
  1275. Check5.Value = 0
  1276. Check6.Value = 0
  1277. Check7.Value = 0
  1278. Check8.Value = 0
  1279. Check9.Value = 0
  1280. Check10.Value = 0
  1281. End If
  1282. End Sub
  1283. Private Sub Command1_Click()
  1284. SendMCIString "close all", False
  1285. cmd = "close all"
  1286. SendMCIString cmd, True
  1287. 'Index.Enabled = True
  1288. Unload Form4
  1289. End Sub
  1290. Private Sub Command2_Click()
  1291.     'Open the mixer with deviceID 0.
  1292.     rc = mixerOpen(hmixer, 0, 0, 0, 0)
  1293.     If ((MMSYSERR_NOERROR <> rc)) Then
  1294.         MsgBox "Couldn't open the mixer please check if a audio mixer is installed then retry."
  1295.         Exit Sub
  1296.     End If
  1297.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, _
  1298.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, VolCtrl)
  1299.     If (ok = True) Then
  1300.         volume = GetVolumeControlValue(hmixer, VolCtrl)
  1301.         If volume <> -1 Then
  1302.             txtMasterVolume.Text = volume \ 6553
  1303.             sliderMasterVolume.Value = 65535 - volume
  1304.         End If
  1305.     End If
  1306.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_WAVEDSVol, _
  1307.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, WavCtrl)
  1308.         If (ok = True) Then
  1309.         volume = GetVolumeControlValue(hmixer, WavCtrl)
  1310.         If volume <> -1 Then
  1311.             txtWaveOutVolume.Text = volume \ 6553
  1312.             sliderWaveOutVolume.Value = 65535 - volume
  1313.         End If
  1314.     End If
  1315.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_MBOOST, _
  1316.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, MBOOST)
  1317.         If (ok = True) Then
  1318.         volume = GetVolumeControlValue(hmixer, MBOOST)
  1319.         If volume <> -1 Then
  1320.             Text2.Text = volume \ 6553
  1321.             Slider2.Value = 65535 - volume
  1322.         End If
  1323.     End If
  1324.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_CDVol, _
  1325.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, CDVol)
  1326.         If (ok = True) Then
  1327.         volume = GetVolumeControlValue(hmixer, CDVol)
  1328.         If volume <> -1 Then
  1329.             Text1.Text = volume \ 6553
  1330.             Slider1.Value = 65535 - volume
  1331.         End If
  1332.     End If
  1333.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_src_AUXVol, _
  1334.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, AUXVol)
  1335.         If (ok = True) Then
  1336.         volume = GetVolumeControlValue(hmixer, AUXVol)
  1337.         If volume <> -1 Then
  1338.             Text3.Text = volume \ 6553
  1339.             Slider3.Value = 65535 - volume
  1340.         End If
  1341.     End If
  1342.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_TADVol, _
  1343.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, TADVol)
  1344.         If (ok = True) Then
  1345.         volume = GetVolumeControlValue(hmixer, TADVol)
  1346.         If volume <> -1 Then
  1347.             Text4.Text = volume \ 6553
  1348.             Slider4.Value = 65535 - volume
  1349.         End If
  1350.     End If
  1351.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_MIDIVol, _
  1352.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, MIDIVol)
  1353.         If (ok = True) Then
  1354.         volume = GetVolumeControlValue(hmixer, MIDIVol)
  1355.         If volume <> -1 Then
  1356.             Text5.Text = volume \ 6553
  1357.             Slider5.Value = 65535 - volume
  1358.         End If
  1359.     End If
  1360.         ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_PSPKVol, _
  1361.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, PSPKVol)
  1362.         If (ok = True) Then
  1363.         volume = GetVolumeControlValue(hmixer, PSPKVol)
  1364.         If volume <> -1 Then
  1365.             Text7.Text = volume \ 6553
  1366.             Slider7.Value = 65535 - volume
  1367.         End If
  1368.     End If
  1369.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_I25InVol, _
  1370.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, I25InVol)
  1371.         If (ok = True) Then
  1372.         volume = GetVolumeControlValue(hmixer, I25InVol)
  1373.         If volume <> -1 Then
  1374.             Text8.Text = volume \ 6553
  1375.             Slider8.Value = 65535 - volume
  1376.         End If
  1377.     End If
  1378.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_LINEVol, _
  1379.                                   MIXERCONTROL_CONTROLTYPE_VOLUME, LineVol)
  1380.         If (ok = True) Then
  1381.         volume = GetVolumeControlValue(hmixer, LineVol)
  1382.         If volume <> -1 Then
  1383.             Text9.Text = volume \ 6553
  1384.             Slider9.Value = 65535 - volume
  1385.         End If
  1386.     End If
  1387.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, _
  1388.                                   MIXERCONTROL_CONTROLTYPE_BASS, Bass)
  1389.         If (ok = True) Then
  1390.         volume = GetVolumeControlValue(hmixer, Bass)
  1391.         If volume <> -1 Then
  1392.            BassText.Text = volume \ 6553
  1393.            BassSlider.Value = 65535 - volume
  1394.         End If
  1395.     End If
  1396.     ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, _
  1397.                                   MIXERCONTROL_CONTROLTYPE_TREBLE, Treble)
  1398.         If (ok = True) Then
  1399.         volume = GetVolumeControlValue(hmixer, Treble)
  1400.         If volume <> -1 Then
  1401.             Treblesliderte.Text = volume \ 6553
  1402.             trebleslider.Value = 65535 - volume
  1403.         End If
  1404.     End If
  1405. End Sub
  1406. Private Sub Form_Load()
  1407. MsgBox "If you have any comments please email me at micracom2@hotmail.com This program still needs work and if any one can make the balance work correctly I would like to know how it was done."
  1408. If (App.PrevInstance = True) Then
  1409.     End
  1410. End If
  1411. ' Initialize variables
  1412. Timer1.Enabled = False
  1413. fastForwardSpeed = 5
  1414. fCDLoaded = False
  1415. ' If the cd is being used, then quit
  1416. If (SendMCIString("open cdaudio alias cd wait shareable", True) = False) Then
  1417.     timeWindow.Text = "Cd in use"
  1418.     End
  1419. End If
  1420. SendMCIString "set cd time format tmsf wait", True
  1421. Timer1.Enabled = True
  1422. Command2_Click
  1423. End Sub
  1424. Private Sub Form_Unload(Cancel As Integer)
  1425. 'Index.Enabled = True
  1426. SendMCIString "close all", False
  1427. End Sub
  1428. Private Sub Option1_Click()
  1429. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, _
  1430.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1431. SetMuteControl hmixer, mute, 1
  1432. End Sub
  1433. Private Sub Option10_Click()
  1434. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_MIDIVol, _
  1435.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1436. unSetMuteControl hmixer, unmute, 1
  1437. End Sub
  1438. Private Sub Option17_Click()
  1439. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_PSPKVol, _
  1440.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1441. SetMuteControl hmixer, mute, 1
  1442. End Sub
  1443. Private Sub Option18_Click()
  1444. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_PSPKVol, _
  1445.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1446. unSetMuteControl hmixer, unmute, 1
  1447. End Sub
  1448. Private Sub Option19_Click()
  1449. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_I25InVol, _
  1450.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1451. unSetMuteControl hmixer, unmute, 1
  1452. End Sub
  1453. Private Sub Option20_Click()
  1454. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_I25InVol, _
  1455.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1456. SetMuteControl hmixer, mute, 1
  1457. End Sub
  1458. Private Sub Option9_Click()
  1459. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_MIDIVol, _
  1460.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1461. SetMuteControl hmixer, mute, 1
  1462. End Sub
  1463. Private Sub Option11_Click()
  1464. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_TADVol, _
  1465.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1466. unSetMuteControl hmixer, unmute, 1
  1467. End Sub
  1468. Private Sub Option12_Click()
  1469. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_TADVol, _
  1470.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1471. SetMuteControl hmixer, mute, 1
  1472. End Sub
  1473. Private Sub Option13_Click()
  1474. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_CDVol, _
  1475.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1476. unSetMuteControl hmixer, unmute, 1
  1477. End Sub
  1478. Private Sub Option14_Click()
  1479. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_CDVol, _
  1480.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1481. SetMuteControl hmixer, mute, 1
  1482. End Sub
  1483. Private Sub Option15_Click()
  1484. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_src_AUXVol, _
  1485.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1486. SetMuteControl hmixer, mute, 1
  1487. End Sub
  1488. Private Sub Option16_Click()
  1489. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_src_AUXVol, _
  1490.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1491. unSetMuteControl hmixer, unmute, 1
  1492. End Sub
  1493. Private Sub Option2_Click()
  1494. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, _
  1495.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1496. unSetMuteControl hmixer, unmute, 1
  1497. End Sub
  1498. Private Sub Option3_Click()
  1499. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_WAVEDSVol, _
  1500.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1501. SetMuteControl hmixer, mute, 1
  1502. End Sub
  1503. Private Sub Option4_Click()
  1504. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_WAVEDSVol, _
  1505.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1506. unSetMuteControl hmixer, mute, 1
  1507. End Sub
  1508. Private Sub Option5_Click()
  1509. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_LINEVol, _
  1510.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1511. SetMuteControl hmixer, mute, 1
  1512. End Sub
  1513. Private Sub Option6_Click()
  1514. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_LINEVol, _
  1515.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1516. unSetMuteControl hmixer, unmute, 1
  1517. End Sub
  1518. Private Sub Option7_Click()
  1519. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_MBOOST, _
  1520.                                   MIXERCONTROL_CONTROLTYPE_MUTE, unmute)
  1521. unSetMuteControl hmixer, unmute, 1
  1522. End Sub
  1523. Private Sub Option8_Click()
  1524. ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_SRC_MBOOST, _
  1525.                                   MIXERCONTROL_CONTROLTYPE_MUTE, mute)
  1526. SetMuteControl hmixer, mute, 1
  1527. End Sub
  1528. Function Errora()
  1529.     MsgBox "Your sound card does not support a bass control"
  1530. End Function
  1531. Private Sub Slider19_Scroll()
  1532.     volL = CLng(32767.5 - Slider19)
  1533.     volR = CLng(32767.5 + Slider19)
  1534.     SetPANControl hmixer, VolCtrl, volL, volR
  1535. End Sub
  1536. Private Sub trebleslider_Scroll()
  1537.       ok = GetMixerControl(hmixer, MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, _
  1538.                                   MIXERCONTROL_CONTROLTYPE_TREBLE, Treble)
  1539.     If ok = False Then
  1540.     Errora
  1541.     Exit Sub
  1542.     End If
  1543.     volume = 65535 - CLng(trebleslider.Value)
  1544.     Treblesliderte.Text = volume \ 6553
  1545.     SetVolumeControl hmixer, Treble, volume
  1546. End Sub
  1547. Private Sub BassSlider_Scroll()
  1548.     volume = 65535 - CLng(BassSlider.Value)
  1549.     BassText.Text = volume \ 6553
  1550.     SetVolumeControl hmixer, Bass, volume
  1551. End Sub
  1552. ' Play the CD
  1553. Private Sub Play_Click()
  1554. SendMCIString "play cd", True
  1555. fPlaying = True
  1556. CD.Text = "Playing"
  1557. End Sub
  1558. Private Sub Slider6_scroll()
  1559. Dim link As Long
  1560. link = 65535 - CLng(Slider6.Value)
  1561. If Check2.Value = 1 Then
  1562. Slider1.Value = Slider6.Value
  1563. Text1.Text = link \ 6553
  1564. SetVolumeControl hmixer, CDVol, link
  1565. End If
  1566. If Check4.Value = 1 Then
  1567. Slider2.Value = Slider6.Value
  1568. Text2.Text = link \ 6553
  1569. SetVolumeControl hmixer, MBOOST, link
  1570. End If
  1571. If Check5.Value = 1 Then
  1572. Slider3.Value = Slider6.Value
  1573. Text3.Text = link \ 6553
  1574. SetVolumeControl hmixer, AUXVol, link
  1575. End If
  1576. If Check7.Value = 1 Then
  1577. Slider4.Value = Slider6.Value
  1578. Text4.Text = link \ 6553
  1579. SetVolumeControl hmixer, TADVol, link
  1580. End If
  1581. If Check8.Value = 1 Then
  1582. Slider5.Value = Slider6.Value
  1583. Text5.Text = link \ 6553
  1584. SetVolumeControl hmixer, MIDIVol, link
  1585. End If
  1586. If Check10.Value = 1 Then
  1587. Slider7.Value = Slider6.Value
  1588. Text7.Text = link \ 6553
  1589. SetVolumeControl hmixer, PSPKVol, link
  1590. End If
  1591. If Check9.Value = 1 Then
  1592. Slider8.Value = Slider6.Value
  1593. Text8.Text = link \ 6553
  1594. SetVolumeControl hmixer, I25InVol, link
  1595. End If
  1596. If Check3.Value = 1 Then
  1597. Slider9.Value = Slider6.Value
  1598. Text9.Text = link \ 6553
  1599. SetVolumeControl hmixer, LineVol, link
  1600. End If
  1601. If Check1.Value = 1 Then
  1602. sliderMasterVolume.Value = Slider6.Value
  1603. txtMasterVolume.Text = link \ 6553
  1604. SetVolumeControl hmixer, VolCtrl, link
  1605. End If
  1606. If Check6.Value = 1 Then
  1607. sliderWaveOutVolume.Value = Slider6.Value
  1608. txtWaveOutVolume.Text = link \ 6553
  1609. SetVolumeControl hmixer, WavCtrl, link
  1610. End If
  1611. End Sub
  1612. ' Stop the CD play
  1613. Private Sub stopbtn_Click()
  1614. SendMCIString "stop cd wait", True
  1615. cmd = "seek cd to " & track
  1616. SendMCIString cmd, True
  1617. fPlaying = False
  1618. CD.Text = "Stopped"
  1619. Update
  1620. End Sub
  1621. ' Pause the CD
  1622. Private Sub pause_Click()
  1623. SendMCIString "pause cd", True
  1624. fPlaying = False
  1625. CD.Text = "Cd Paused"
  1626. Update
  1627. End Sub
  1628. ' Eject the CD
  1629. Private Sub Eject0_Click()
  1630. SendMCIString "set cd door open", True
  1631. CD.Text = "Insert CD"
  1632. eject1.Visible = True
  1633. eject0.Visible = False
  1634. Update
  1635. End Sub
  1636. Private Sub Eject1_Click()
  1637. CD.Text = "Please wait"
  1638. SendMCIString "set cd door closed", True
  1639. eject0.Visible = True
  1640. eject1.Visible = False
  1641. Update
  1642. End Sub
  1643. ' Fast forward
  1644. Private Sub ff_Click()
  1645. Dim s As String * 40
  1646. SendMCIString "set cd time format milliseconds", True
  1647. mciSendString "status cd position wait", s, Len(s), 0
  1648. If (fPlaying) Then
  1649.     cmd = "play cd from " & CStr(CLng(s) + fastForwardSpeed * 1000)
  1650.     cmd = "seek cd to " & CStr(CLng(s) + fastForwardSpeed * 1000)
  1651. End If
  1652. mciSendString cmd, 0, 0, 0
  1653. SendMCIString "set cd time format tmsf", True
  1654. Update
  1655. End Sub
  1656. ' Rewind the CD
  1657. Private Sub rew_Click()
  1658. Dim s As String * 40
  1659. SendMCIString "set cd time format milliseconds", True
  1660. mciSendString "status cd position wait", s, Len(s), 0
  1661. If (fPlaying) Then
  1662.     cmd = "play cd from " & CStr(CLng(s) - fastForwardSpeed * 1000)
  1663.     cmd = "seek cd to " & CStr(CLng(s) - fastForwardSpeed * 1000)
  1664. End If
  1665. mciSendString cmd, 0, 0, 0
  1666. SendMCIString "set cd time format tmsf", True
  1667. Update
  1668. End Sub
  1669. ' Forward track
  1670. Private Sub ftrack_Click()
  1671. If (track < numTracks) Then
  1672.     If (fPlaying) Then
  1673.         cmd = "play cd from " & track + 1
  1674.         SendMCIString cmd, True
  1675.     Else
  1676.         cmd = "seek cd to " & track + 1
  1677.         SendMCIString cmd, True
  1678.     End If
  1679.     SendMCIString "seek cd to 1", True
  1680. End If
  1681. Update
  1682. End Sub
  1683. ' Go to previous track
  1684. Private Sub btrack_Click()
  1685. Dim from As String
  1686. If (min = 0 And SEC = 0) Then
  1687.     If (track > 1) Then
  1688.         from = CStr(track - 1)
  1689.     Else
  1690.         from = CStr(numTracks)
  1691.     End If
  1692.     from = CStr(track)
  1693. End If
  1694. If (fPlaying) Then
  1695.     cmd = "play cd from " & from
  1696.     SendMCIString cmd, True
  1697.     cmd = "seek cd to " & from
  1698.     SendMCIString cmd, True
  1699. End If
  1700. Update
  1701. End Sub
  1702. ' Update the display and state variables
  1703. Private Sub Update()
  1704. Static s As String * 30
  1705. ' Check if CD is in the player
  1706. mciSendString "status cd media present", s, Len(s), 0
  1707. If (CBool(s)) Then
  1708.     ' Enable all the controls, get CD information
  1709.     If (fCDLoaded = False) Then
  1710.         mciSendString "status cd number of tracks wait", s, Len(s), 0
  1711.         numTracks = CInt(Mid$(s, 1, 2))
  1712.         eject0.Visible = True
  1713.         eject1.Visible = False
  1714.         CD.Text = "Cd Ready"
  1715.         ' If CD only has 1 track, then it's probably a data CD
  1716.         If (numTracks = 1) Then
  1717.             CD.Text = "Not audio"
  1718.             Exit Sub
  1719.         End If
  1720.         
  1721.         mciSendString "status cd length wait", s, Len(s), 0
  1722.         totalplay.Caption = "Tracks: " & numTracks
  1723.         trtime.Caption = "Total time: " & s
  1724.         ReDim trackLength(1 To numTracks)
  1725.         Dim I As Integer
  1726.         For I = 1 To numTracks
  1727.             cmd = "status cd length track " & I
  1728.             mciSendString cmd, s, Len(s), 0
  1729.             trackLength(I) = s
  1730.         Next
  1731.         timeWindow.FontSize = 18
  1732.         play.Enabled = True
  1733.         pause.Enabled = True
  1734.         ff.Enabled = True
  1735.         rew.Enabled = True
  1736.         ftrack.Enabled = True
  1737.         btrack.Enabled = True
  1738.         stopbtn.Enabled = True
  1739.         fCDLoaded = True
  1740.         SendMCIString "seek cd to 1", True
  1741.     End If
  1742.     ' Update the track time display
  1743.     mciSendString "status cd position", s, Len(s), 0
  1744.     track = CInt(Mid$(s, 1, 2))
  1745.     min = CInt(Mid$(s, 4, 2))
  1746.     SEC = CInt(Mid$(s, 7, 2))
  1747.     timeWindow.Text = "[" & Format(track, "00") & "] " & Format(min, "00") _
  1748.             & ":" & Format(SEC, "00")
  1749.     tracktime.Caption = "Track time: " & trackLength(track)
  1750.     ' Check if CD is playing
  1751.     mciSendString "status cd mode", s, Len(s), 0
  1752.     fPlaying = (Mid$(s, 1, 7) = "playing")
  1753.     ' Disable all the controls, clear the display
  1754.     If (fCDLoaded = True) Then
  1755.         play.Enabled = False
  1756.         pause.Enabled = False
  1757.         ff.Enabled = False
  1758.         rew.Enabled = False
  1759.         ftrack.Enabled = False
  1760.         btrack.Enabled = False
  1761.         stopbtn.Enabled = False
  1762.         fCDLoaded = False
  1763.         fPlaying = False
  1764.         totalplay.Caption = ""
  1765.         tracktime.Caption = ""
  1766.         CD.Text = "No CD"
  1767.     End If
  1768. End If
  1769. End Sub
  1770. Private Sub Timer1_Timer()
  1771. Update
  1772. End Sub
  1773. Private Sub Slider1_Scroll()
  1774.     volume = 65535 - CLng(Slider1.Value)
  1775.     Text1.Text = volume \ 6553
  1776.     SetVolumeControl hmixer, CDVol, volume
  1777. End Sub
  1778. Private Sub Slider2_Scroll()
  1779.     volume = 65535 - CLng(Slider2.Value)
  1780.     Text2.Text = volume \ 6553
  1781.     SetVolumeControl hmixer, MBOOST, volume
  1782. End Sub
  1783. Private Sub Slider3_Scroll()
  1784.     volume = 65535 - CLng(Slider3.Value)
  1785.     Text3.Text = volume \ 6553
  1786.     SetVolumeControl hmixer, AUXVol, volume
  1787. End Sub
  1788. Private Sub Slider4_Scroll()
  1789.     volume = 65535 - CLng(Slider4.Value)
  1790.     Text4.Text = volume \ 6553
  1791.     SetVolumeControl hmixer, TADVol, volume
  1792. End Sub
  1793. Private Sub Slider5_Scroll()
  1794.     volume = 65535 - CLng(Slider5.Value)
  1795.     Text5.Text = volume \ 6553
  1796.     SetVolumeControl hmixer, MIDIVol, volume
  1797. End Sub
  1798. Private Sub Slider7_Scroll()
  1799.     volume = 65535 - CLng(Slider7.Value)
  1800.     Text7.Text = volume \ 6553
  1801.     SetVolumeControl hmixer, PSPKVol, volume
  1802. End Sub
  1803. Private Sub Slider8_Scroll()
  1804.     volume = 65535 - CLng(Slider8.Value)
  1805.     Text8.Text = volume \ 6553
  1806.     SetVolumeControl hmixer, I25InVol, volume
  1807. End Sub
  1808. Private Sub Slider9_Scroll()
  1809.     volume = 65535 - CLng(Slider9.Value)
  1810.     Text9.Text = volume \ 6553
  1811.     SetVolumeControl hmixer, LineVol, volume
  1812. End Sub
  1813. Private Sub sliderMasterVolume_Scroll()
  1814.     volume = 65535 - CLng(sliderMasterVolume.Value)
  1815.     txtMasterVolume.Text = volume \ 6553
  1816.     SetVolumeControl hmixer, VolCtrl, volume
  1817. End Sub
  1818. Private Sub sliderWaveOutVolume_Scroll()
  1819.     volume = 65535 - CLng(sliderWaveOutVolume.Value)
  1820.     txtWaveOutVolume.Text = volume \ 6553
  1821.     SetVolumeControl hmixer, WavCtrl, volume
  1822. End Sub
  1823.