BugInTheSYS

Untitled

Feb 20th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.41 KB | None | 0 0
  1. type
  2.   Int12 = -2047..2048;
  3.   Int24 = -8388608..8388607;
  4.   RawInt24 = Array [0..2] of Byte;
  5.  
  6.   TSample8     = packed Record
  7.     L: ShortInt;
  8.     R: ShortInt;
  9.   end;
  10.   TSample12    = packed Record
  11.     L: Int12;
  12.     R: Int12;
  13.   end;
  14.   TSample16    = packed Record
  15.     L: SmallInt;
  16.     R: SmallInt;
  17.   end;
  18.   TSample24    = packed Record
  19.     L: Int24;
  20.     R: Int24;
  21.   end;
  22.   TRawSample24 = packed Record
  23.     L: RawInt24;
  24.     R: RawInt24;
  25.   end;
  26.   TSample32    = packed Record
  27.     L: Integer;
  28.     R: Integer;
  29.   end;
  30.  
  31.   TWaveContent8     = packed Array of TSample8;
  32.   TWaveContent12    = packed Array of TSample12;
  33.   TRawWaveContent12 = packed Array of Byte;
  34.   TWaveContent16    = packed Array of TSample16;
  35.   TWaveContent24    = packed Array of TSample24;
  36.   TRawWaveContent24 = packed Array of TRawSample24;
  37.   TWaveContent32    = packed Array of TSample32;
  38.  
  39.   TRIFFHeader = packed record
  40.     ID: Array[0..3] of Char;
  41.     Length: DWORD;
  42.     WaveID: Array[0..3] of Char;
  43.   end;
  44.   TFormatHeader = packed record
  45.     ID: Array[0..3] of Char;
  46.     Length: DWORD;
  47.     FormatTag: WORD;
  48.     Channels: WORD;
  49.     SampleRate: DWORD;
  50.     ByteRate: DWORD;
  51.     BlockAlign: WORD;
  52.     BitResolution: WORD;
  53.   end;
  54.   TDataHeader = packed record
  55.     ID: Array[0..3] of Char;
  56.     Length: DWORD;
  57.   end;
  58.   TWaveHeader = packed record
  59.     RIFF: TRIFFHeader;
  60.     Format: TFormatHeader;
  61.     Data: TDataHeader;
  62.   end;
Advertisement
Add Comment
Please, Sign In to add comment