| 1 |
object Main: TMain |
| 2 |
Left = 716 |
| 3 |
Height = 636 |
| 4 |
Top = 240 |
| 5 |
Width = 1079 |
| 6 |
HorzScrollBar.Page = 770 |
| 7 |
VertScrollBar.Page = 496 |
| 8 |
Caption = 'Test Sound Source Allocation' |
| 9 |
ClientHeight = 636 |
| 10 |
ClientWidth = 1079 |
| 11 |
DesignTimePPI = 120 |
| 12 |
OnCreate = FormCreate |
| 13 |
Position = poScreenCenter |
| 14 |
LCLVersion = '3.0.0.3' |
| 15 |
object PanelLists: TPanel |
| 16 |
AnchorSideTop.Control = PanelSourcePlaying |
| 17 |
AnchorSideTop.Side = asrBottom |
| 18 |
Left = 6 |
| 19 |
Height = 204 |
| 20 |
Top = 431 |
| 21 |
Width = 1065 |
| 22 |
Anchors = [akTop, akLeft, akRight, akBottom] |
| 23 |
BorderSpacing.Top = 6 |
| 24 |
ClientHeight = 204 |
| 25 |
ClientWidth = 1065 |
| 26 |
ParentFont = False |
| 27 |
TabOrder = 0 |
| 28 |
object Label2: TLabel |
| 29 |
Left = 3 |
| 30 |
Height = 22 |
| 31 |
Top = 0 |
| 32 |
Width = 202 |
| 33 |
Caption = 'Allocated Sound Sources' |
| 34 |
ParentColor = False |
| 35 |
ParentFont = False |
| 36 |
end |
| 37 |
object ListAllocatedSources: TListBox |
| 38 |
Left = 6 |
| 39 |
Height = 170 |
| 40 |
Top = 23 |
| 41 |
Width = 1047 |
| 42 |
Anchors = [akTop, akLeft, akRight, akBottom] |
| 43 |
ItemHeight = 0 |
| 44 |
ParentFont = False |
| 45 |
ScrollWidth = 1220 |
| 46 |
TabOrder = 0 |
| 47 |
TopIndex = -1 |
| 48 |
end |
| 49 |
object CheckKeepRefreshingUsed: TCheckBox |
| 50 |
AnchorSideLeft.Control = ListAllocatedSources |
| 51 |
AnchorSideLeft.Side = asrBottom |
| 52 |
Left = 777 |
| 53 |
Height = 26 |
| 54 |
Top = 0 |
| 55 |
Width = 276 |
| 56 |
Anchors = [akTop, akRight] |
| 57 |
BorderSpacing.Left = 8 |
| 58 |
Caption = 'Automatically Keep Refreshing' |
| 59 |
Checked = True |
| 60 |
ParentFont = False |
| 61 |
State = cbChecked |
| 62 |
TabOrder = 1 |
| 63 |
end |
| 64 |
end |
| 65 |
object PanelAllocatorLimits: TPanel |
| 66 |
AnchorSideTop.Control = LabelDescription |
| 67 |
AnchorSideTop.Side = asrBottom |
| 68 |
Left = 6 |
| 69 |
Height = 134 |
| 70 |
Top = 148 |
| 71 |
Width = 1065 |
| 72 |
Anchors = [akTop, akLeft, akRight] |
| 73 |
AutoSize = True |
| 74 |
BorderSpacing.Top = 10 |
| 75 |
BorderSpacing.Around = 10 |
| 76 |
ClientHeight = 134 |
| 77 |
ClientWidth = 1065 |
| 78 |
ParentFont = False |
| 79 |
TabOrder = 1 |
| 80 |
object LabelMaxAllocatedSources: TLabel |
| 81 |
AnchorSideTop.Control = SpinEditMaxAllocatedSources |
| 82 |
AnchorSideTop.Side = asrCenter |
| 83 |
Left = 1 |
| 84 |
Height = 22 |
| 85 |
Top = 48 |
| 86 |
Width = 188 |
| 87 |
Caption = 'Max allocated sources :' |
| 88 |
ParentColor = False |
| 89 |
ParentFont = False |
| 90 |
end |
| 91 |
object LabelMinAllocatedSources: TLabel |
| 92 |
AnchorSideTop.Control = SpinEditMinAllocatedSources |
| 93 |
AnchorSideTop.Side = asrCenter |
| 94 |
Left = 3 |
| 95 |
Height = 22 |
| 96 |
Top = 9 |
| 97 |
Width = 184 |
| 98 |
Caption = 'Min allocated sources :' |
| 99 |
ParentColor = False |
| 100 |
ParentFont = False |
| 101 |
end |
| 102 |
object ButtonApplyAllocatorLimits: TButton |
| 103 |
AnchorSideLeft.Control = SpinEditMaxAllocatedSources |
| 104 |
AnchorSideLeft.Side = asrBottom |
| 105 |
AnchorSideBottom.Control = SpinEditMaxAllocatedSources |
| 106 |
AnchorSideBottom.Side = asrBottom |
| 107 |
Left = 340 |
| 108 |
Height = 44 |
| 109 |
Top = 35 |
| 110 |
Width = 277 |
| 111 |
Anchors = [akLeft, akBottom] |
| 112 |
AutoSize = True |
| 113 |
BorderSpacing.Left = 10 |
| 114 |
BorderSpacing.InnerBorder = 3 |
| 115 |
Caption = 'Set Min / Max allocated sources' |
| 116 |
ParentFont = False |
| 117 |
TabOrder = 0 |
| 118 |
OnClick = ButtonApplyAllocatorLimitsClick |
| 119 |
end |
| 120 |
object SpinEditMaxAllocatedSources: TSpinEdit |
| 121 |
AnchorSideLeft.Control = LabelMaxAllocatedSources |
| 122 |
AnchorSideLeft.Side = asrBottom |
| 123 |
AnchorSideTop.Control = SpinEditMinAllocatedSources |
| 124 |
AnchorSideTop.Side = asrBottom |
| 125 |
Left = 189 |
| 126 |
Height = 39 |
| 127 |
Top = 40 |
| 128 |
Width = 141 |
| 129 |
MaxValue = 1000 |
| 130 |
MinValue = 1 |
| 131 |
ParentFont = False |
| 132 |
TabOrder = 1 |
| 133 |
Value = 6 |
| 134 |
end |
| 135 |
object SpinEditMinAllocatedSources: TSpinEdit |
| 136 |
AnchorSideLeft.Control = LabelMinAllocatedSources |
| 137 |
AnchorSideLeft.Side = asrBottom |
| 138 |
Left = 187 |
| 139 |
Height = 39 |
| 140 |
Top = 1 |
| 141 |
Width = 141 |
| 142 |
MaxValue = 1000 |
| 143 |
MinValue = 1 |
| 144 |
ParentFont = False |
| 145 |
TabOrder = 2 |
| 146 |
Value = 4 |
| 147 |
end |
| 148 |
object ButtonApplyAllocatorLimitsDefault: TButton |
| 149 |
AnchorSideLeft.Control = LabelMaxAllocatedSources |
| 150 |
AnchorSideTop.Control = SpinEditMaxAllocatedSources |
| 151 |
AnchorSideTop.Side = asrBottom |
| 152 |
AnchorSideBottom.Control = SpinEditMaxAllocatedSources |
| 153 |
AnchorSideBottom.Side = asrBottom |
| 154 |
Left = 11 |
| 155 |
Height = 44 |
| 156 |
Top = 89 |
| 157 |
Width = 455 |
| 158 |
AutoSize = True |
| 159 |
BorderSpacing.Left = 10 |
| 160 |
BorderSpacing.Top = 10 |
| 161 |
BorderSpacing.InnerBorder = 3 |
| 162 |
Caption = 'Set Min / Max allocated sources to Defaults (%d / %d)' |
| 163 |
ParentFont = False |
| 164 |
TabOrder = 3 |
| 165 |
OnClick = ButtonApplyAllocatorLimitsDefaultClick |
| 166 |
end |
| 167 |
end |
| 168 |
object PanelSourcePlaying: TPanel |
| 169 |
AnchorSideTop.Control = PanelAllocatorLimits |
| 170 |
AnchorSideTop.Side = asrBottom |
| 171 |
Left = 6 |
| 172 |
Height = 133 |
| 173 |
Top = 292 |
| 174 |
Width = 1065 |
| 175 |
Anchors = [akTop, akLeft, akRight] |
| 176 |
AutoSize = True |
| 177 |
BorderSpacing.InnerBorder = 3 |
| 178 |
ClientHeight = 133 |
| 179 |
ClientWidth = 1065 |
| 180 |
ParentFont = False |
| 181 |
TabOrder = 2 |
| 182 |
object LabelSourceImportance: TLabel |
| 183 |
Left = 4 |
| 184 |
Height = 22 |
| 185 |
Top = 9 |
| 186 |
Width = 162 |
| 187 |
BorderSpacing.Left = 3 |
| 188 |
Caption = 'Source importance :' |
| 189 |
ParentColor = False |
| 190 |
ParentFont = False |
| 191 |
end |
| 192 |
object Label3: TLabel |
| 193 |
AnchorSideTop.Control = FileNameEditSound |
| 194 |
AnchorSideTop.Side = asrCenter |
| 195 |
Left = 4 |
| 196 |
Height = 22 |
| 197 |
Top = 51 |
| 198 |
Width = 136 |
| 199 |
Caption = 'Sound filename :' |
| 200 |
ParentColor = False |
| 201 |
ParentFont = False |
| 202 |
end |
| 203 |
object FileNameEditSound: TFileNameEdit |
| 204 |
AnchorSideLeft.Control = Label3 |
| 205 |
AnchorSideLeft.Side = asrBottom |
| 206 |
AnchorSideTop.Control = SpinEditSourceImportance |
| 207 |
AnchorSideTop.Side = asrBottom |
| 208 |
Left = 140 |
| 209 |
Height = 39 |
| 210 |
Top = 43 |
| 211 |
Width = 292 |
| 212 |
FileName = 'tone.wav' |
| 213 |
DialogOptions = [] |
| 214 |
FilterIndex = 0 |
| 215 |
HideDirectories = False |
| 216 |
ButtonWidth = 30 |
| 217 |
NumGlyphs = 1 |
| 218 |
MaxLength = 0 |
| 219 |
ParentFont = False |
| 220 |
TabOrder = 0 |
| 221 |
Text = 'tone.wav' |
| 222 |
end |
| 223 |
object SpinEditSourceImportance: TSpinEdit |
| 224 |
AnchorSideLeft.Control = LabelSourceImportance |
| 225 |
AnchorSideLeft.Side = asrBottom |
| 226 |
Left = 166 |
| 227 |
Height = 39 |
| 228 |
Top = 4 |
| 229 |
Width = 114 |
| 230 |
BorderSpacing.Top = 3 |
| 231 |
MaxValue = 1000 |
| 232 |
MinValue = -1000 |
| 233 |
ParentFont = False |
| 234 |
TabOrder = 1 |
| 235 |
end |
| 236 |
object ButtonAllocateAndPlay: TButton |
| 237 |
AnchorSideTop.Control = FileNameEditSound |
| 238 |
AnchorSideTop.Side = asrBottom |
| 239 |
Left = 4 |
| 240 |
Height = 44 |
| 241 |
Top = 82 |
| 242 |
Width = 112 |
| 243 |
AutoSize = True |
| 244 |
BorderSpacing.InnerBorder = 3 |
| 245 |
Caption = 'Play Sound' |
| 246 |
ParentFont = False |
| 247 |
TabOrder = 2 |
| 248 |
OnClick = ButtonAllocateAndPlayClick |
| 249 |
end |
| 250 |
object CheckBoxPlayLooping: TCheckBox |
| 251 |
AnchorSideLeft.Control = SpinEditSourceImportance |
| 252 |
AnchorSideLeft.Side = asrBottom |
| 253 |
AnchorSideTop.Control = SpinEditSourceImportance |
| 254 |
AnchorSideTop.Side = asrCenter |
| 255 |
Left = 286 |
| 256 |
Height = 26 |
| 257 |
Top = 10 |
| 258 |
Width = 127 |
| 259 |
BorderSpacing.Left = 6 |
| 260 |
Caption = 'Play looping' |
| 261 |
ParentFont = False |
| 262 |
TabOrder = 3 |
| 263 |
end |
| 264 |
end |
| 265 |
object LabelDescription: TLabel |
| 266 |
AnchorSideTop.Control = LabelTitle |
| 267 |
AnchorSideTop.Side = asrBottom |
| 268 |
Left = 6 |
| 269 |
Height = 88 |
| 270 |
Top = 40 |
| 271 |
Width = 1023 |
| 272 |
Anchors = [akTop, akLeft, akRight] |
| 273 |
BorderSpacing.Top = 10 |
| 274 |
Caption = 'Press "Play sound" a couple of times, and note that multiple sound sources will be intelligently allocated.'#10'- The sources are managed based on their Importance. When there are no more free slots, the least important sound is released.'#10'- Test with your own, longer sounds too, so that you can see many sounds playing at once.' |
| 275 |
ParentColor = False |
| 276 |
ParentFont = False |
| 277 |
WordWrap = True |
| 278 |
end |
| 279 |
object LabelTitle: TLabel |
| 280 |
Left = 6 |
| 281 |
Height = 22 |
| 282 |
Top = 8 |
| 283 |
Width = 253 |
| 284 |
Caption = 'Test Sound Source Allocation' |
| 285 |
Font.Style = [fsBold] |
| 286 |
ParentColor = False |
| 287 |
ParentFont = False |
| 288 |
end |
| 289 |
object TimerToDisplaySounds: TTimer |
| 290 |
Enabled = False |
| 291 |
Interval = 10 |
| 292 |
OnTimer = TimerToDisplaySoundsTimer |
| 293 |
Left = 501 |
| 294 |
Top = 453 |
| 295 |
end |
| 296 |
object ApplicationProperties1: TApplicationProperties |
| 297 |
Left = 850 |
| 298 |
Top = 446 |
| 299 |
end |
| 300 |
object TimerToRefreshUsedSounds: TTimer |
| 301 |
Interval = 1 |
| 302 |
OnTimer = TimerToRefreshUsedSoundsTimer |
| 303 |
Left = 219 |
| 304 |
Top = 480 |
| 305 |
end |
| 306 |
end |