* Dotted filenames for package fcl-sound

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:58:00 +01:00
parent d3df269339
commit 93def13823
7 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,3 @@
unit System.Sound.Wav.Format;
{$DEFINE FPC_DOTTEDUNITS}
{$i fpwavformat.pas}

View File

@ -0,0 +1,3 @@
unit System.Sound.Wav.Reader;
{$DEFINE FPC_DOTTEDUNITS}
{$i fpwavreader.pas}

View File

@ -0,0 +1,3 @@
unit System.Sound.Wav.Writer;
{$DEFINE FPC_DOTTEDUNITS}
{$i fpwavwriter.pas}

View File

@ -0,0 +1,5 @@
src/fpwavformat.pas=namespaced/System.Sound.Wav.Format.pas
{s*:src/}=namespaced/
{i+:src/}
src/fpwavreader.pas=namespaced/System.Sound.Wav.Reader.pas
src/fpwavwriter.pas=namespaced/System.Sound.Wav.Writer.pas

View File

@ -13,7 +13,9 @@
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
}
{$IFNDEF FPC_DOTTEDUNITS}
unit fpwavformat;
{$ENDIF FPC_DOTTEDUNITS}
{$mode objfpc}{$H+}

View File

@ -13,15 +13,23 @@
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
}
{$IFNDEF FPC_DOTTEDUNITS}
unit fpwavreader;
{$ENDIF FPC_DOTTEDUNITS}
{$mode objfpc}{$H+}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.Sound.Wav.Format,
System.Classes;
{$ELSE FPC_DOTTEDUNITS}
uses
fpWavFormat,
Classes;
{$ENDIF FPC_DOTTEDUNITS}
type
{ TWaveReader }
@ -43,8 +51,13 @@ type
implementation
{$IFDEF FPC_DOTTEDUNITS}
uses
System.SysUtils;
{$ELSE FPC_DOTTEDUNITS}
uses
SysUtils;
{$ENDIF FPC_DOTTEDUNITS}
procedure LEtoN(var fmt: TWaveFormat); overload;
begin

View File

@ -13,15 +13,23 @@
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
}
{$IFNDEF FPC_DOTTEDUNITS}
unit fpwavwriter;
{$ENDIF FPC_DOTTEDUNITS}
{$mode objfpc}{$H+}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.Sound.Wav.Format,
System.Classes;
{$ELSE FPC_DOTTEDUNITS}
uses
fpWavFormat,
Classes;
{$ENDIF FPC_DOTTEDUNITS}
type
{ TWaveReader }
@ -44,8 +52,13 @@ type
implementation
{$IFDEF FPC_DOTTEDUNITS}
uses
System.SysUtils;
{$ELSE FPC_DOTTEDUNITS}
uses
SysUtils;
{$ENDIF FPC_DOTTEDUNITS}
procedure NtoLE(var fmt: TWaveFormat); overload;
begin