Changeset 75 for trunk/Packages/CoolAudio/Systems
- Timestamp:
- Mar 26, 2024, 11:27:01 PM (9 months ago)
- Location:
- trunk/Packages/CoolAudio/Systems
- Files:
-
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolAudio/Systems/AudioSystem.pas
r74 r75 1 unit UAudioSystem; 2 3 {$mode delphi}{$H+} 1 unit AudioSystem; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Contnrs;6 Classes, SysUtils, Generics.Collections; 9 7 10 8 type … … 118 116 TAudioSystemManager = class(TComponent) 119 117 public 120 Systems: TObjectList ; // TListObject<TAudioSystem>118 Systems: TObjectList<TAudioSystemManagerItem>; 121 119 procedure Register(Name: string; SystemClass: TAudioSystemClass); 122 120 procedure FillStringList(StringList: TStrings); … … 298 296 StringList.Clear; 299 297 for I := 0 to Systems.Count - 1 do 300 with TAudioSystemManagerItem(Systems[I])do298 with Systems[I] do 301 299 StringList.AddObject(Name, Systems[I]); 302 300 end; … … 309 307 I := 0; 310 308 while (I < Systems.Count) and 311 (( TAudioSystemManagerItem(Systems[I]).Name <> Name) or312 (not TAudioSystemManagerItem(Systems[I]).Supported and SupportedOnly)) do Inc(I);313 if I < Systems.Count then Result := TAudioSystemManagerItem(Systems[I])309 ((Systems[I].Name <> Name) or 310 (not Systems[I].Supported and SupportedOnly)) do Inc(I); 311 if I < Systems.Count then Result := Systems[I] 314 312 else Result := nil; 315 313 end; … … 330 328 begin 331 329 inherited; 332 Systems := TObjectList .Create;330 Systems := TObjectList<TAudioSystemManagerItem>.Create; 333 331 end; 334 332 335 333 destructor TAudioSystemManager.Destroy; 336 334 begin 337 Systems.Free;338 inherited Destroy;335 FreeAndNil(Systems); 336 inherited; 339 337 end; 340 338 … … 424 422 Stop; 425 423 Active := False; 426 inherited Destroy;424 inherited; 427 425 end; 428 426 … … 448 446 destructor TAudioSystem.Destroy; 449 447 begin 450 inherited Destroy;448 inherited; 451 449 end; 452 450 -
trunk/Packages/CoolAudio/Systems/DSP/AudioSystemDSP.pas
r74 r75 1 unit UAudioSystemDSP;1 unit AudioSystemDSP; 2 2 3 {$I UCoolAudioConfig.inc} 4 {$mode delphi}{$H+} 3 {$I CoolAudioConfig.inc} 5 4 6 5 interface … … 8 7 {$IFDEF AudioSystemDSP} 9 8 uses 10 Classes, SysUtils, UAudioSystem, BaseUnix, UWavFile, StdCtrls, ExtCtrls;9 Classes, SysUtils, AudioSystem, BaseUnix, WavFile, ExtCtrls; 11 10 12 11 type … … 70 69 {$ENDIF} 71 70 71 72 72 implementation 73 73 … … 83 83 procedure TAudioSystemDSP.OpenDevice; 84 84 var 85 Stereo , Error: Longint;85 Stereo: Longint; 86 86 begin 87 87 Write('Openning /dev/dsp'); -
trunk/Packages/CoolAudio/Systems/FMOD/AudioSystemFMOD.pas
r74 r75 1 unit UAudioSystemFMOD;1 unit AudioSystemFMOD; 2 2 3 {$I UCoolAudioConfig.inc} 4 {$mode delphi}{$H+} 3 {$I CoolAudioConfig.inc} 5 4 6 5 interface … … 9 8 {$IFDEF AudioSystemFMOD} 10 9 uses 11 Classes, SysUtils, fmoddyn, fmodtypes, UAudioSystem, DateUtils;10 Classes, SysUtils, fmoddyn, fmodtypes, AudioSystem, DateUtils; 12 11 13 12 type -
trunk/Packages/CoolAudio/Systems/MAD/AudioSystemMAD.pas
r74 r75 1 unit UAudioSystemMAD;1 unit AudioSystemMAD; 2 2 3 {$I UCoolAudioConfig.inc} 4 {$mode delphi}{$H+} 3 {$I CoolAudioConfig.inc} 5 4 6 5 interface … … 8 7 {$IFDEF AudioSystemMAD} 9 8 uses 10 Classes, SysUtils, mad, UAudioSystem;9 Classes, SysUtils, mad, AudioSystem; 11 10 12 11 type … … 26 25 27 26 {$ENDIF} 27 28 28 29 29 implementation -
trunk/Packages/CoolAudio/Systems/WavFile.pas
r74 r75 13 13 { *************************************************************************** } 14 14 15 unit UWavFile;15 unit WavFile; 16 16 17 17 interface … … 79 79 80 80 implementation 81 82 81 83 82 { ********************* Auxiliary functions & procedures ******************** } -
trunk/Packages/CoolAudio/Systems/WinAPI/AudioSystemWindows.pas
r74 r75 1 unit UAudioSystemWindows; 2 3 {$I UCoolAudioConfig.inc} 4 {$mode delphi}{$H+} 1 unit AudioSystemWindows; 2 3 {$I CoolAudioConfig.inc} 5 4 6 5 interface … … 8 7 {$IFDEF Windows} 9 8 uses 10 Windows, Classes, SysUtils, UAudioSystem, MMSystem, DateUtils;9 Windows, Classes, SysUtils, AudioSystem, MMSystem, DateUtils; 11 10 12 11 type -
trunk/Packages/CoolAudio/Systems/mplayer/AudioSystemMPlayer.pas
r74 r75 1 1 // MPlayer slave command list: http://www.mplayerhq.hu/DOCS/tech/slave.txt 2 2 3 unit UAudioSystemMPlayer; 4 5 {$I UCoolAudioConfig.inc} 6 {$mode Delphi}{$H+} 3 unit AudioSystemMPlayer; 4 5 {$I CoolAudioConfig.inc} 7 6 8 7 interface 9 8 10 9 uses 11 Classes, SysUtils, UAudioSystem, Process, Math, Dialogs, DateUtils;10 Classes, SysUtils, AudioSystem, Process, Math, Dialogs, DateUtils; 12 11 13 12 const … … 64 63 SCantStopProcess = 'Can''t stop Mplayer process'; 65 64 65 66 66 implementation 67 67 … … 125 125 destructor TAudioSystemMPlayer.Destroy; 126 126 begin 127 inherited Destroy;127 inherited; 128 128 end; 129 129 … … 189 189 function TPlayerMPlayer.GetVolume: Real; 190 190 begin 191 Result := 0; 191 192 end; 192 193 … … 251 252 var 252 253 MPOptions: String; 253 Vol: Real;254 254 begin 255 255 if FPlaying then Stop; … … 306 306 begin 307 307 Stop; 308 F Process.Free;309 inherited Destroy;308 FreeAndNil(FProcess); 309 inherited; 310 310 end; 311 311
Note:
See TracChangeset
for help on using the changeset viewer.