THPDFSoundParams Record

Sample rate, channel, bit depth and encoding metadata supplied by the caller for PDF Sound objects

Declaration

THPDFSoundParams= record
  SampleRate: Single; // /R Hz; typical 22050 / 44100 / 48000
  Channels: Integer; // /C 1=mono, 2=stereo; default 1
  BitsPerSample: Integer; // /B 1/2/4/8/16/24/32; default 8
  Encoding: AnsiString; // /E 'Raw' | 'Signed' | 'muLaw' | 'ALaw'
end;

Unit

HPDFDoc

Fields

FieldPurpose
SampleRatePlayback rate in Hertz written as /R; must exceed zero, with 22050, 44100 and 48000 the usual values
ChannelsChannel count written as /C, 1 for mono and 2 for stereo; values of zero or less fall back to 1
BitsPerSampleSample width written as /B, one of 1, 2, 4, 8, 16, 24, 32; zero or less falls back to 8
EncodingSample encoding written as /E: Raw, Signed, muLaw or ALaw; an empty string falls back to Raw

Usage notes

Related APIs