Changeset 284
- Timestamp:
- Oct 11, 2011, 8:31:29 AM (13 years ago)
- Location:
- CoolAudio
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolAudio/CoolAudio.lpk
r278 r284 56 56 </Item9> 57 57 <Item10> 58 <Filename Value="Systems/UAudioSystemWindows.pas"/> 59 <UnitName Value="UAudioSystemWindows"/> 60 </Item10> 61 <Item11> 58 62 <Filename Value="Systems/UAudioSystem.pas"/> 59 63 <UnitName Value="UAudioSystem"/> 60 </Item10>61 <Item11>62 <Filename Value="Systems/UAudioSystemWindows.pas"/>63 <UnitName Value="UAudioSystemWindows"/>64 64 </Item11> 65 65 </Files> -
CoolAudio/CoolAudio.pas
r278 r284 9 9 uses 10 10 fmod, fmoddyn, fmoderrors, fmodpresets, fmodtypes, UCoolAudio, UPlaylist, 11 UAudioSystemFMOD, UAudioSystemMPlayer, UAudioSystem , UAudioSystemWindows,11 UAudioSystemFMOD, UAudioSystemMPlayer, UAudioSystemWindows, UAudioSystem, 12 12 LazarusPackageIntf; 13 13 -
CoolAudio/Demo/Demo.lpi
r280 r284 38 38 </Item2> 39 39 </RequiredPackages> 40 <Units Count="2 4">40 <Units Count="25"> 41 41 <Unit0> 42 42 <Filename Value="Demo.lpr"/> 43 43 <IsPartOfProject Value="True"/> 44 44 <UnitName Value="Demo"/> 45 <EditorIndex Value="1 0"/>45 <EditorIndex Value="11"/> 46 46 <WindowIndex Value="0"/> 47 47 <TopLine Value="1"/> 48 48 <CursorPos X="19" Y="10"/> 49 <UsageCount Value=" 38"/>49 <UsageCount Value="80"/> 50 50 <Loaded Value="True"/> 51 51 </Unit0> … … 58 58 <EditorIndex Value="0"/> 59 59 <WindowIndex Value="0"/> 60 <TopLine Value=" 84"/>61 <CursorPos X=" 1" Y="96"/>62 <UsageCount Value=" 38"/>60 <TopLine Value="97"/> 61 <CursorPos X="26" Y="95"/> 62 <UsageCount Value="80"/> 63 63 <Loaded Value="True"/> 64 64 <LoadedDesigner Value="True"/> … … 67 67 <Filename Value="../UCoolAudio.pas"/> 68 68 <UnitName Value="UCoolAudio"/> 69 <EditorIndex Value=" 5"/>70 <WindowIndex Value="0"/> 71 <TopLine Value=" 11"/>72 <CursorPos X=" 18" Y="16"/>73 <UsageCount Value=" 14"/>69 <EditorIndex Value="6"/> 70 <WindowIndex Value="0"/> 71 <TopLine Value="27"/> 72 <CursorPos X="20" Y="19"/> 73 <UsageCount Value="34"/> 74 74 <Loaded Value="True"/> 75 75 </Unit2> … … 77 77 <Filename Value="../Systems/UAudioSystemFMOD.pas"/> 78 78 <UnitName Value="UAudioSystemFMOD"/> 79 <EditorIndex Value=" 8"/>79 <EditorIndex Value="9"/> 80 80 <WindowIndex Value="0"/> 81 81 <TopLine Value="47"/> 82 82 <CursorPos X="1" Y="61"/> 83 <UsageCount Value=" 19"/>83 <UsageCount Value="39"/> 84 84 <Loaded Value="True"/> 85 85 </Unit3> … … 90 90 <TopLine Value="1"/> 91 91 <CursorPos X="29" Y="8"/> 92 <UsageCount Value=" 20"/>92 <UsageCount Value="16"/> 93 93 </Unit4> 94 94 <Unit5> 95 95 <Filename Value="../fmodintf/fmoddyn.pas"/> 96 96 <UnitName Value="fmoddyn"/> 97 <EditorIndex Value=" 9"/>97 <EditorIndex Value="10"/> 98 98 <WindowIndex Value="0"/> 99 99 <TopLine Value="579"/> 100 100 <CursorPos X="19" Y="593"/> 101 <UsageCount Value=" 14"/>101 <UsageCount Value="34"/> 102 102 <Loaded Value="True"/> 103 103 </Unit5> … … 108 108 <TopLine Value="158"/> 109 109 <CursorPos X="43" Y="178"/> 110 <UsageCount Value=" 10"/>110 <UsageCount Value="6"/> 111 111 </Unit6> 112 112 <Unit7> 113 113 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 114 114 <UnitName Value="UAudioSystemMPlayer"/> 115 <EditorIndex Value=" 6"/>116 <WindowIndex Value="0"/> 117 <TopLine Value=" 30"/>118 <CursorPos X=" 31" Y="36"/>119 <UsageCount Value=" 19"/>115 <EditorIndex Value="7"/> 116 <WindowIndex Value="0"/> 117 <TopLine Value="243"/> 118 <CursorPos X="114" Y="258"/> 119 <UsageCount Value="39"/> 120 120 <Loaded Value="True"/> 121 121 </Unit7> … … 126 126 <TopLine Value="1"/> 127 127 <CursorPos X="1" Y="1"/> 128 <UsageCount Value=" 8"/>128 <UsageCount Value="4"/> 129 129 </Unit8> 130 130 <Unit9> 131 131 <Filename Value="../Systems/UAudioSystem.pas"/> 132 132 <UnitName Value="UAudioSystem"/> 133 <EditorIndex Value="4"/> 134 <WindowIndex Value="0"/> 135 <TopLine Value="123"/> 136 <CursorPos X="1" Y="137"/> 137 <UsageCount Value="29"/> 133 <IsVisibleTab Value="True"/> 134 <EditorIndex Value="5"/> 135 <WindowIndex Value="0"/> 136 <TopLine Value="177"/> 137 <CursorPos X="3" Y="181"/> 138 <UsageCount Value="49"/> 138 139 <Loaded Value="True"/> 139 140 </Unit9> … … 144 145 <TopLine Value="418"/> 145 146 <CursorPos X="18" Y="430"/> 146 <UsageCount Value=" 10"/>147 <UsageCount Value="6"/> 147 148 </Unit10> 148 149 <Unit11> … … 152 153 <TopLine Value="2427"/> 153 154 <CursorPos X="24" Y="2429"/> 154 <UsageCount Value=" 12"/>155 <UsageCount Value="8"/> 155 156 </Unit11> 156 157 <Unit12> … … 160 161 <TopLine Value="38"/> 161 162 <CursorPos X="32" Y="50"/> 162 <UsageCount Value=" 8"/>163 <UsageCount Value="4"/> 163 164 </Unit12> 164 165 <Unit13> … … 168 169 <TopLine Value="120"/> 169 170 <CursorPos X="16" Y="131"/> 170 <UsageCount Value=" 8"/>171 <UsageCount Value="4"/> 171 172 </Unit13> 172 173 <Unit14> … … 175 176 <TopLine Value="26"/> 176 177 <CursorPos X="18" Y="28"/> 177 <UsageCount Value=" 8"/>178 <UsageCount Value="4"/> 178 179 </Unit14> 179 180 <Unit15> … … 182 183 <TopLine Value="65"/> 183 184 <CursorPos X="17" Y="67"/> 184 <UsageCount Value=" 8"/>185 <UsageCount Value="4"/> 185 186 </Unit15> 186 187 <Unit16> … … 190 191 <TopLine Value="2275"/> 191 192 <CursorPos X="1" Y="2287"/> 192 <UsageCount Value=" 13"/>193 <UsageCount Value="33"/> 193 194 <Loaded Value="True"/> 194 195 </Unit16> … … 198 199 <TopLine Value="6307"/> 199 200 <CursorPos X="17" Y="6320"/> 200 <UsageCount Value=" 8"/>201 <UsageCount Value="4"/> 201 202 </Unit17> 202 203 <Unit18> … … 206 207 <TopLine Value="13"/> 207 208 <CursorPos X="21" Y="26"/> 208 <UsageCount Value=" 12"/>209 <UsageCount Value="8"/> 209 210 </Unit18> 210 211 <Unit19> … … 214 215 <TopLine Value="1"/> 215 216 <CursorPos X="1" Y="1"/> 216 <UsageCount Value=" 12"/>217 <UsageCount Value="8"/> 217 218 </Unit19> 218 219 <Unit20> … … 221 222 <EditorIndex Value="3"/> 222 223 <WindowIndex Value="0"/> 223 <TopLine Value=" 882"/>224 <CursorPos X="5 " Y="765"/>225 <UsageCount Value=" 15"/>224 <TopLine Value="1781"/> 225 <CursorPos X="52" Y="1791"/> 226 <UsageCount Value="35"/> 226 227 <Loaded Value="True"/> 227 228 </Unit20> … … 229 230 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 230 231 <UnitName Value="UAudioSystemWindows"/> 231 <IsVisibleTab Value="True"/>232 232 <EditorIndex Value="2"/> 233 233 <WindowIndex Value="0"/> 234 <TopLine Value=" 117"/>235 <CursorPos X=" 26" Y="137"/>236 <UsageCount Value=" 25"/>234 <TopLine Value="212"/> 235 <CursorPos X="1" Y="228"/> 236 <UsageCount Value="45"/> 237 237 <Loaded Value="True"/> 238 238 </Unit21> … … 242 242 <TopLine Value="159"/> 243 243 <CursorPos X="10" Y="176"/> 244 <UsageCount Value=" 9"/>244 <UsageCount Value="5"/> 245 245 </Unit22> 246 246 <Unit23> 247 247 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/fpc/2.5.1/source/rtl/objpas/sysutils/osutilsh.inc"/> 248 <EditorIndex Value=" 7"/>248 <EditorIndex Value="8"/> 249 249 <WindowIndex Value="0"/> 250 250 <TopLine Value="23"/> 251 251 <CursorPos X="10" Y="23"/> 252 <UsageCount Value=" 13"/>252 <UsageCount Value="33"/> 253 253 <Loaded Value="True"/> 254 254 </Unit23> 255 <Unit24> 256 <Filename Value="../../../../Lazarus/0.9.31_2.5.1/fpc/2.5.1/source/rtl/win/wininc/base.inc"/> 257 <EditorIndex Value="4"/> 258 <WindowIndex Value="0"/> 259 <TopLine Value="148"/> 260 <CursorPos X="6" Y="159"/> 261 <UsageCount Value="10"/> 262 <Loaded Value="True"/> 263 </Unit24> 255 264 </Units> 256 <JumpHistory Count="30" HistoryIndex="2 8">265 <JumpHistory Count="30" HistoryIndex="27"> 257 266 <Position1> 258 <Filename Value=" ../Systems/UAudioSystemWindows.pas"/>259 <Caret Line="1 70" Column="49" TopLine="158"/>267 <Filename Value="UMainForm.pas"/> 268 <Caret Line="115" Column="66" TopLine="96"/> 260 269 </Position1> 261 270 <Position2> 262 <Filename Value=" ../Systems/UAudioSystemWindows.pas"/>263 <Caret Line=" 162" Column="1" TopLine="158"/>271 <Filename Value="UMainForm.pas"/> 272 <Caret Line="85" Column="13" TopLine="83"/> 264 273 </Position2> 265 274 <Position3> 266 <Filename Value="../Systems/UAudioSystem Windows.pas"/>267 <Caret Line=" 85" Column="1" TopLine="73"/>275 <Filename Value="../Systems/UAudioSystem.pas"/> 276 <Caret Line="59" Column="58" TopLine="47"/> 268 277 </Position3> 269 278 <Position4> 270 279 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 271 <Caret Line=" 86" Column="1" TopLine="73"/>280 <Caret Line="228" Column="55" TopLine="215"/> 272 281 </Position4> 273 282 <Position5> 274 <Filename Value="../Systems/UAudioSystem .pas"/>275 <Caret Line=" 135" Column="1" TopLine="123"/>283 <Filename Value="../Systems/UAudioSystemMPlayer.pas"/> 284 <Caret Line="258" Column="114" TopLine="243"/> 276 285 </Position5> 277 286 <Position6> 278 <Filename Value="../Systems/UAudioSystem .pas"/>279 <Caret Line=" 136" Column="1" TopLine="123"/>287 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 288 <Caret Line="74" Column="6" TopLine="62"/> 280 289 </Position6> 281 290 <Position7> 282 <Filename Value="../Systems/UAudioSystem .pas"/>283 <Caret Line=" 137" Column="1" TopLine="123"/>291 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 292 <Caret Line="228" Column="1" TopLine="219"/> 284 293 </Position7> 285 294 <Position8> 286 295 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 287 <Caret Line=" 87" Column="1" TopLine="73"/>296 <Caret Line="230" Column="1" TopLine="219"/> 288 297 </Position8> 289 298 <Position9> 290 299 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 291 <Caret Line=" 108" Column="1" TopLine="104"/>300 <Caret Line="232" Column="1" TopLine="219"/> 292 301 </Position9> 293 302 <Position10> 294 303 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 295 <Caret Line=" 161" Column="1" TopLine="149"/>304 <Caret Line="228" Column="1" TopLine="219"/> 296 305 </Position10> 297 306 <Position11> 298 307 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 299 <Caret Line=" 162" Column="1" TopLine="149"/>308 <Caret Line="230" Column="1" TopLine="219"/> 300 309 </Position11> 301 310 <Position12> 302 311 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 303 <Caret Line=" 42" Column="56" TopLine="30"/>312 <Caret Line="228" Column="1" TopLine="219"/> 304 313 </Position12> 305 314 <Position13> 306 <Filename Value=" ../Systems/UAudioSystemWindows.pas"/>307 <Caret Line=" 134" Column="29" TopLine="116"/>315 <Filename Value="UMainForm.pas"/> 316 <Caret Line="86" Column="14" TopLine="83"/> 308 317 </Position13> 309 318 <Position14> 310 319 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 311 <Caret Line=" 112" Column="76" TopLine="100"/>320 <Caret Line="228" Column="1" TopLine="215"/> 312 321 </Position14> 313 322 <Position15> 314 323 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 315 <Caret Line=" 113" Column="15" TopLine="101"/>324 <Caret Line="229" Column="1" TopLine="215"/> 316 325 </Position15> 317 326 <Position16> 318 327 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 319 <Caret Line=" 46" Column="28" TopLine="34"/>328 <Caret Line="227" Column="42" TopLine="215"/> 320 329 </Position16> 321 330 <Position17> 322 331 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 323 <Caret Line=" 134" Column="47" TopLine="122"/>332 <Caret Line="228" Column="1" TopLine="215"/> 324 333 </Position17> 325 334 <Position18> 326 335 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 327 <Caret Line=" 43" Column="45" TopLine="30"/>336 <Caret Line="226" Column="39" TopLine="215"/> 328 337 </Position18> 329 338 <Position19> 330 339 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 331 <Caret Line=" 146" Column="3" TopLine="140"/>340 <Caret Line="74" Column="1" TopLine="63"/> 332 341 </Position19> 333 342 <Position20> 334 343 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 335 <Caret Line=" 121" Column="1" TopLine="117"/>344 <Caret Line="228" Column="47" TopLine="217"/> 336 345 </Position20> 337 346 <Position21> 338 347 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 339 <Caret Line=" 122" Column="1" TopLine="117"/>348 <Caret Line="74" Column="1" TopLine="63"/> 340 349 </Position21> 341 350 <Position22> 342 351 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 343 <Caret Line=" 123" Column="1" TopLine="117"/>352 <Caret Line="255" Column="1" TopLine="217"/> 344 353 </Position22> 345 354 <Position23> 346 355 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 347 <Caret Line=" 128" Column="1" TopLine="117"/>356 <Caret Line="228" Column="1" TopLine="217"/> 348 357 </Position23> 349 358 <Position24> 350 359 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 351 <Caret Line=" 129" Column="1" TopLine="117"/>360 <Caret Line="255" Column="37" TopLine="238"/> 352 361 </Position24> 353 362 <Position25> 354 363 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 355 <Caret Line=" 134" Column="1" TopLine="117"/>364 <Caret Line="228" Column="1" TopLine="209"/> 356 365 </Position25> 357 366 <Position26> 358 367 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 359 <Caret Line=" 135" Column="1" TopLine="117"/>368 <Caret Line="230" Column="1" TopLine="211"/> 360 369 </Position26> 361 370 <Position27> 362 371 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 363 <Caret Line=" 136" Column="1" TopLine="117"/>372 <Caret Line="74" Column="1" TopLine="63"/> 364 373 </Position27> 365 374 <Position28> 366 <Filename Value="../Systems/UAudioSystem Windows.pas"/>367 <Caret Line="1 38" Column="1" TopLine="118"/>375 <Filename Value="../Systems/UAudioSystem.pas"/> 376 <Caret Line="182" Column="5" TopLine="177"/> 368 377 </Position28> 369 378 <Position29> 370 379 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 371 <Caret Line=" 134" Column="28" TopLine="117"/>380 <Caret Line="228" Column="1" TopLine="212"/> 372 381 </Position29> 373 382 <Position30> 374 <Filename Value="../ ../../../Lazarus/0.9.31_2.5.1/fpc/2.5.1/source/packages/winunits-base/src/mmsystem.pp"/>375 <Caret Line="7 65" Column="5" TopLine="882"/>383 <Filename Value="../Systems/UAudioSystemWindows.pas"/> 384 <Caret Line="75" Column="1" TopLine="64"/> 376 385 </Position30> 377 386 </JumpHistory> … … 401 410 </CompilerOptions> 402 411 <Debugging> 412 <BreakPoints Count="1"> 413 <Item1> 414 <Kind Value="bpkSource"/> 415 <Source Value="../Systems/UAudioSystemWindows.pas"/> 416 <Line Value="228"/> 417 </Item1> 418 </BreakPoints> 403 419 <Watches Count="1"> 404 420 <Item1> -
CoolAudio/Demo/UMainForm.lfm
r280 r284 1 1 object MainForm: TMainForm 2 Left = 5 312 Left = 571 3 3 Height = 240 4 Top = 3 004 Top = 335 5 5 Width = 435 6 6 Caption = 'CoolAudio demo' … … 17 17 Anchors = [akTop, akLeft, akRight] 18 18 TabOrder = 0 19 Text = ' h:\Projekty2\PascalClassLibrary\CoolAudio\Demo\4 Strings - Catch A Fall (Radio Edit).mp3'19 Text = 'test.mp3' 20 20 end 21 21 object Button1: TButton -
CoolAudio/Systems/UAudioSystem.pas
r280 r284 179 179 if AValue = FFileName then Exit; 180 180 FFileName := AValue; 181 Close; 182 Open; 181 183 end; 182 184 -
CoolAudio/Systems/UAudioSystemMPlayer.pas
r280 r284 256 256 //MPOptions := '-af volume=' + IntToStr(IntTodB(Round(FVolume * 100), 100)) + ' ' + MPOptions;// -volume xx only supported with patched mplayer; 257 257 258 FProcess.CommandLine := TAudioSystemMPlayer(AudioSystem).FPath + ' ' + MPOptions + ' "' + FFileName+ '"';258 FProcess.CommandLine := TAudioSystemMPlayer(AudioSystem).FPath + ' ' + MPOptions + ' "' + UTF8Decode(FFileName) + '"'; 259 259 FProcess.Options := FProcess.Options + [poUsePipes, poDefaultErrorMode, poStderrToOutPut, poNoConsole]; 260 260 //InputBox('', '', FProcess.CommandLine); -
CoolAudio/Systems/UAudioSystemWindows.pas
r280 r284 226 226 Parm.dwCallback := 0; 227 227 Parm.lpstrDeviceType := DeviceName[FDeviceType]; 228 Parm.lpstrElementName := PChar( FFileName);228 Parm.lpstrElementName := PChar(UTF8Decode(FFileName)); 229 229 230 230 FFlags := 0;
Note:
See TracChangeset
for help on using the changeset viewer.