Changeset 276 for CoolAudio/Demo
- Timestamp:
- Oct 4, 2011, 1:18:33 PM (13 years ago)
- Location:
- CoolAudio/Demo
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolAudio/Demo
- Property svn:ignore
-
old new 2 2 11-seal-amazing.mp3 3 3 lib 4 Demo.exe
-
- Property svn:ignore
-
CoolAudio/Demo/Demo.lpi
r275 r276 38 38 </Item2> 39 39 </RequiredPackages> 40 <Units Count=" 10">40 <Units Count="20"> 41 41 <Unit0> 42 42 <Filename Value="Demo.lpr"/> 43 43 <IsPartOfProject Value="True"/> 44 44 <UnitName Value="Demo"/> 45 <UsageCount Value="2 1"/>45 <UsageCount Value="28"/> 46 46 </Unit0> 47 47 <Unit1> … … 51 51 <ResourceBaseClass Value="Form"/> 52 52 <UnitName Value="UMainForm"/> 53 <IsVisibleTab Value="True"/>54 53 <EditorIndex Value="0"/> 55 54 <WindowIndex Value="0"/> 56 <TopLine Value=" 1"/>57 <CursorPos X=" 25" Y="9"/>58 <UsageCount Value="2 1"/>55 <TopLine Value="58"/> 56 <CursorPos X="66" Y="65"/> 57 <UsageCount Value="28"/> 59 58 <Loaded Value="True"/> 60 59 <LoadedDesigner Value="True"/> … … 63 62 <Filename Value="../UCoolAudio.pas"/> 64 63 <UnitName Value="UCoolAudio"/> 65 <EditorIndex Value="1"/> 66 <WindowIndex Value="0"/> 67 <TopLine Value="1"/> 68 <CursorPos X="1" Y="11"/> 69 <UsageCount Value="10"/> 70 <Loaded Value="True"/> 64 <WindowIndex Value="0"/> 65 <TopLine Value="1"/> 66 <CursorPos X="34" Y="6"/> 67 <UsageCount Value="10"/> 71 68 </Unit2> 72 69 <Unit3> 73 70 <Filename Value="../Systems/UAudioSystemFMOD.pas"/> 74 71 <UnitName Value="UAudioSystemFMOD"/> 75 <EditorIndex Value=" 5"/>76 <WindowIndex Value="0"/> 77 <TopLine Value="1"/> 78 <CursorPos X=" 46" Y="11"/>79 <UsageCount Value="1 0"/>72 <EditorIndex Value="6"/> 73 <WindowIndex Value="0"/> 74 <TopLine Value="1"/> 75 <CursorPos X="20" Y="111"/> 76 <UsageCount Value="13"/> 80 77 <Loaded Value="True"/> 81 78 </Unit3> … … 83 80 <Filename Value="../UPlaylist.pas"/> 84 81 <UnitName Value="UPlaylist"/> 85 <EditorIndex Value="7"/>86 82 <WindowIndex Value="0"/> 87 83 <TopLine Value="1"/> 88 84 <CursorPos X="29" Y="8"/> 89 <UsageCount Value="20"/> 90 <Loaded Value="True"/> 85 <UsageCount Value="22"/> 91 86 </Unit4> 92 87 <Unit5> 93 88 <Filename Value="../fmodintf/fmoddyn.pas"/> 94 89 <UnitName Value="fmoddyn"/> 95 <EditorIndex Value="8"/>96 90 <WindowIndex Value="0"/> 97 91 <TopLine Value="46"/> 98 92 <CursorPos X="10" Y="63"/> 99 <UsageCount Value="10"/> 100 <Loaded Value="True"/> 93 <UsageCount Value="12"/> 101 94 </Unit5> 102 95 <Unit6> 103 96 <Filename Value="../fmodintf/fmodtypes.pas"/> 104 97 <UnitName Value="fmodtypes"/> 105 <EditorIndex Value="6"/>106 98 <WindowIndex Value="0"/> 107 99 <TopLine Value="158"/> 108 100 <CursorPos X="43" Y="178"/> 109 <UsageCount Value="10"/> 110 <Loaded Value="True"/> 101 <UsageCount Value="12"/> 111 102 </Unit6> 112 103 <Unit7> 113 104 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 114 105 <UnitName Value="UAudioSystemMPlayer"/> 115 <EditorIndex Value="4"/> 116 <WindowIndex Value="0"/> 117 <TopLine Value="1"/> 118 <CursorPos X="34" Y="8"/> 119 <UsageCount Value="10"/> 106 <IsVisibleTab Value="True"/> 107 <EditorIndex Value="3"/> 108 <WindowIndex Value="0"/> 109 <TopLine Value="258"/> 110 <CursorPos X="8" Y="260"/> 111 <UsageCount Value="13"/> 120 112 <Loaded Value="True"/> 121 113 </Unit7> … … 123 115 <Filename Value="../CoolAudio.pas"/> 124 116 <UnitName Value="CoolAudio"/> 125 <EditorIndex Value="2"/>126 117 <WindowIndex Value="0"/> 127 118 <TopLine Value="1"/> 128 119 <CursorPos X="1" Y="1"/> 129 120 <UsageCount Value="10"/> 130 <Loaded Value="True"/>131 121 </Unit8> 132 122 <Unit9> 133 123 <Filename Value="../Systems/UAudioSystem.pas"/> 134 124 <UnitName Value="UAudioSystem"/> 135 <EditorIndex Value=" 3"/>136 <WindowIndex Value="0"/> 137 <TopLine Value=" 48"/>138 <CursorPos X=" 1" Y="81"/>139 <UsageCount Value="2 0"/>125 <EditorIndex Value="2"/> 126 <WindowIndex Value="0"/> 127 <TopLine Value="70"/> 128 <CursorPos X="32" Y="82"/> 129 <UsageCount Value="23"/> 140 130 <Loaded Value="True"/> 141 131 </Unit9> 132 <Unit10> 133 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/stdctrls.pp"/> 134 <UnitName Value="StdCtrls"/> 135 <WindowIndex Value="0"/> 136 <TopLine Value="1046"/> 137 <CursorPos X="17" Y="1067"/> 138 <UsageCount Value="10"/> 139 </Unit10> 140 <Unit11> 141 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/controls.pp"/> 142 <UnitName Value="Controls"/> 143 <EditorIndex Value="1"/> 144 <WindowIndex Value="0"/> 145 <TopLine Value="2427"/> 146 <CursorPos X="24" Y="2429"/> 147 <UsageCount Value="10"/> 148 <Loaded Value="True"/> 149 </Unit11> 150 <Unit12> 151 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/lclclasses.pp"/> 152 <UnitName Value="LCLClasses"/> 153 <WindowIndex Value="0"/> 154 <TopLine Value="38"/> 155 <CursorPos X="32" Y="50"/> 156 <UsageCount Value="10"/> 157 </Unit12> 158 <Unit13> 159 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/widgetset/wslclclasses.pp"/> 160 <UnitName Value="WSLCLClasses"/> 161 <WindowIndex Value="0"/> 162 <TopLine Value="120"/> 163 <CursorPos X="16" Y="131"/> 164 <UsageCount Value="10"/> 165 </Unit13> 166 <Unit14> 167 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/include/buttons.inc"/> 168 <WindowIndex Value="0"/> 169 <TopLine Value="26"/> 170 <CursorPos X="18" Y="28"/> 171 <UsageCount Value="10"/> 172 </Unit14> 173 <Unit15> 174 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/include/buttoncontrol.inc"/> 175 <WindowIndex Value="0"/> 176 <TopLine Value="65"/> 177 <CursorPos X="17" Y="67"/> 178 <UsageCount Value="10"/> 179 </Unit15> 180 <Unit16> 181 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/include/control.inc"/> 182 <WindowIndex Value="0"/> 183 <TopLine Value="4280"/> 184 <CursorPos X="19" Y="4283"/> 185 <UsageCount Value="10"/> 186 </Unit16> 187 <Unit17> 188 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/lcl/include/wincontrol.inc"/> 189 <WindowIndex Value="0"/> 190 <TopLine Value="6307"/> 191 <CursorPos X="17" Y="6320"/> 192 <UsageCount Value="10"/> 193 </Unit17> 194 <Unit18> 195 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/fpc/2.5.1/source/packages/fcl-process/src/process.pp"/> 196 <UnitName Value="process"/> 197 <EditorIndex Value="4"/> 198 <WindowIndex Value="0"/> 199 <TopLine Value="13"/> 200 <CursorPos X="21" Y="26"/> 201 <UsageCount Value="10"/> 202 <Loaded Value="True"/> 203 </Unit18> 204 <Unit19> 205 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/fpc/2.5.1/source/packages/libogcfpc/src/debug.pp"/> 206 <UnitName Value="debug"/> 207 <EditorIndex Value="5"/> 208 <WindowIndex Value="0"/> 209 <TopLine Value="1"/> 210 <CursorPos X="1" Y="1"/> 211 <UsageCount Value="10"/> 212 <Loaded Value="True"/> 213 </Unit19> 142 214 </Units> 143 <JumpHistory Count=" 13" HistoryIndex="12">215 <JumpHistory Count="30" HistoryIndex="29"> 144 216 <Position1> 145 <Filename Value="../ UCoolAudio.pas"/>146 <Caret Line="2 2" Column="75" TopLine="1"/>217 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 218 <Caret Line="232" Column="1" TopLine="212"/> 147 219 </Position1> 148 220 <Position2> 149 <Filename Value="../ UCoolAudio.pas"/>150 <Caret Line=" 55" Column="3" TopLine="37"/>221 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 222 <Caret Line="244" Column="42" TopLine="228"/> 151 223 </Position2> 152 224 <Position3> 153 <Filename Value="../ UCoolAudio.pas"/>154 <Caret Line=" 18" Column="60" TopLine="1"/>225 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 226 <Caret Line="239" Column="1" TopLine="228"/> 155 227 </Position3> 156 228 <Position4> 157 <Filename Value="../ UCoolAudio.pas"/>158 <Caret Line=" 56" Column="18" TopLine="37"/>229 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 230 <Caret Line="240" Column="1" TopLine="228"/> 159 231 </Position4> 160 232 <Position5> 161 <Filename Value="../ UCoolAudio.pas"/>162 <Caret Line=" 46" Column="33" TopLine="21"/>233 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 234 <Caret Line="241" Column="1" TopLine="228"/> 163 235 </Position5> 164 236 <Position6> 165 <Filename Value="../ UCoolAudio.pas"/>166 <Caret Line=" 56" Column="3" TopLine="45"/>237 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 238 <Caret Line="242" Column="1" TopLine="228"/> 167 239 </Position6> 168 240 <Position7> 169 <Filename Value="../ UCoolAudio.pas"/>170 <Caret Line=" 11" Column="11" TopLine="1"/>241 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 242 <Caret Line="243" Column="1" TopLine="228"/> 171 243 </Position7> 172 244 <Position8> 173 <Filename Value="../ UCoolAudio.pas"/>174 <Caret Line=" 19" Column="12" TopLine="1"/>245 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 246 <Caret Line="240" Column="12" TopLine="228"/> 175 247 </Position8> 176 248 <Position9> 177 <Filename Value="../ UCoolAudio.pas"/>178 <Caret Line="2 0" Column="34" TopLine="2"/>249 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 250 <Caret Line="219" Column="53" TopLine="203"/> 179 251 </Position9> 180 252 <Position10> 181 <Filename Value="../ UCoolAudio.pas"/>182 <Caret Line=" 1" Column="1" TopLine="1"/>253 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 254 <Caret Line="240" Column="1" TopLine="227"/> 183 255 </Position10> 184 256 <Position11> 185 <Filename Value="../ CoolAudio.pas"/>186 <Caret Line=" 1" Column="1" TopLine="1"/>257 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 258 <Caret Line="241" Column="1" TopLine="227"/> 187 259 </Position11> 188 260 <Position12> 189 <Filename Value="../ CoolAudio.pas"/>190 <Caret Line=" 19" Column="44" TopLine="1"/>261 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 262 <Caret Line="242" Column="1" TopLine="227"/> 191 263 </Position12> 192 264 <Position13> 193 <Filename Value=" UMainForm.pas"/>194 <Caret Line=" 46" Column="15" TopLine="37"/>265 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 266 <Caret Line="243" Column="1" TopLine="227"/> 195 267 </Position13> 268 <Position14> 269 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 270 <Caret Line="240" Column="12" TopLine="227"/> 271 </Position14> 272 <Position15> 273 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 274 <Caret Line="110" Column="37" TopLine="108"/> 275 </Position15> 276 <Position16> 277 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 278 <Caret Line="239" Column="1" TopLine="227"/> 279 </Position16> 280 <Position17> 281 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 282 <Caret Line="240" Column="1" TopLine="227"/> 283 </Position17> 284 <Position18> 285 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 286 <Caret Line="241" Column="1" TopLine="227"/> 287 </Position18> 288 <Position19> 289 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 290 <Caret Line="240" Column="10" TopLine="227"/> 291 </Position19> 292 <Position20> 293 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 294 <Caret Line="126" Column="50" TopLine="108"/> 295 </Position20> 296 <Position21> 297 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 298 <Caret Line="230" Column="1" TopLine="218"/> 299 </Position21> 300 <Position22> 301 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 302 <Caret Line="231" Column="1" TopLine="218"/> 303 </Position22> 304 <Position23> 305 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 306 <Caret Line="109" Column="1" TopLine="97"/> 307 </Position23> 308 <Position24> 309 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 310 <Caret Line="110" Column="1" TopLine="97"/> 311 </Position24> 312 <Position25> 313 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 314 <Caret Line="111" Column="1" TopLine="97"/> 315 </Position25> 316 <Position26> 317 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 318 <Caret Line="112" Column="1" TopLine="97"/> 319 </Position26> 320 <Position27> 321 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 322 <Caret Line="116" Column="1" TopLine="97"/> 323 </Position27> 324 <Position28> 325 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 326 <Caret Line="233" Column="45" TopLine="218"/> 327 </Position28> 328 <Position29> 329 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 330 <Caret Line="112" Column="45" TopLine="97"/> 331 </Position29> 332 <Position30> 333 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 334 <Caret Line="230" Column="1" TopLine="218"/> 335 </Position30> 196 336 </JumpHistory> 197 337 </ProjectOptions> … … 208 348 <Debugging> 209 349 <GenerateDebugInfo Value="True"/> 210 <DebugInfoType Value="dsAuto"/>211 350 </Debugging> 212 351 <Options> … … 221 360 </CompilerOptions> 222 361 <Debugging> 223 < BreakPoints Count="2">362 <Watches Count="1"> 224 363 <Item1> 225 <Kind Value="bpkSource"/> 226 <WatchScope Value="wpsLocal"/> 227 <WatchKind Value="wpkWrite"/> 228 <Source Value="../UFMODAudio.pas"/> 229 <Line Value="59"/> 364 <Expression Value="MPOptions"/> 230 365 </Item1> 231 <Item2> 232 <Kind Value="bpkSource"/> 233 <WatchScope Value="wpsLocal"/> 234 <WatchKind Value="wpkWrite"/> 235 <Source Value="../UFMODAudio.pas"/> 236 <Line Value="49"/> 237 </Item2> 238 </BreakPoints> 366 </Watches> 239 367 <Exceptions Count="3"> 240 368 <Item1> -
CoolAudio/Demo/UMainForm.lfm
r275 r276 1 1 object MainForm: TMainForm 2 Left = 4792 Left = 531 3 3 Height = 240 4 Top = 2495 Width = 3594 Top = 300 5 Width = 435 6 6 Caption = 'CoolAudio demo' 7 7 ClientHeight = 240 8 ClientWidth = 3598 ClientWidth = 435 9 9 OnCreate = FormCreate 10 10 OnDestroy = FormDestroy … … 14 14 Height = 21 15 15 Top = 12 16 Width = 26416 Width = 340 17 17 Anchors = [akTop, akLeft, akRight] 18 18 TabOrder = 0 19 Text = ' 11-seal-amazing.mp3'19 Text = 'h:\Projekty2\PascalClassLibrary\CoolAudio\Demo\4 Strings - Catch A Fall (Radio Edit).mp3' 20 20 end 21 21 object Button1: TButton 22 Left = 27722 Left = 353 23 23 Height = 25 24 24 Top = 12 … … 26 26 Anchors = [akTop, akRight] 27 27 Caption = 'Select...' 28 OnClick = Button1Click 28 29 TabOrder = 1 29 30 end … … 59 60 Height = 33 60 61 Top = 90 61 Width = 34162 Width = 417 62 63 Position = 0 63 64 Anchors = [akTop, akLeft, akRight] 64 65 TabOrder = 5 65 66 end 67 object OpenDialog1: TOpenDialog 68 Filter = 'Any file (*.*)|*.*|MP3 (*.mp3)|*.mp3|WAV (*.wav)|*.wav' 69 left = 296 70 top = 48 71 end 66 72 end -
CoolAudio/Demo/UMainForm.pas
r275 r276 19 19 ButtonPause: TButton; 20 20 Edit1: TEdit; 21 OpenDialog1: TOpenDialog; 21 22 TrackBar1: TTrackBar; 23 procedure Button1Click(Sender: TObject); 22 24 procedure ButtonPauseClick(Sender: TObject); 23 25 procedure ButtonPlayClick(Sender: TObject); … … 43 45 procedure TMainForm.FormCreate(Sender: TObject); 44 46 begin 45 AudioSystem := TFMODAudioSystem.Create; 46 Player := TFMODPlayer.Create; 47 AudioSystem := TAudioSystemMPlayer.Create; 48 TAudioSystemMPlayer(AudioSystem).Path := 'c:\Program Files\SMPlayer\mplayer\mplayer.exe'; 49 Player := TPlayerMPlayer.Create; 50 Player.AudioSystem := AudioSystem; 47 51 end; 48 52 … … 55 59 procedure TMainForm.ButtonPlayClick(Sender: TObject); 56 60 begin 61 Player.FileName := Edit1.Text; 57 62 Player.Play; 58 63 end; … … 68 73 end; 69 74 75 procedure TMainForm.Button1Click(Sender: TObject); 76 begin 77 if OpenDialog1.Execute then Edit1.Text := OpenDialog1.FileName; 78 end; 79 70 80 end. 71 81
Note:
See TracChangeset
for help on using the changeset viewer.