Click or drag to resize

PdfSound Class

Represents a sound object
Inheritance Hierarchy

Namespace:  Patagames.Pdf.Net.Wrappers
Assemblies:   Patagames.Pdf.Xamarin.iOS (in Patagames.Pdf.Xamarin.iOS.dll) Version: 4.55.2704
  Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.55.2704
Syntax
public class PdfSound : PdfWrapper

The PdfSound type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBps
Gets or sets the number of bits per sample value per channel.
Public propertyChannels
Gets or sets the number of sound channels.
Public propertyCompressionFormat
The sound compression format used on the sample data.
Public propertyEncoding
Gets or sets the encoding format for the sample data.
Public propertyParameters
Gets or sets optional parameters specific to the sound compression format used.
Public propertyRate
Gets or sets the sampling rate, in samples per second.
Public propertyStream
Gets underlying stream.
Top
Methods
  NameDescription
Protected methodDispose
Releases all resources used by the PdfSound.
(Overrides PdfWrapperDispose(Boolean).)
Public methodStatic memberFromWave
Creates a new instance of PdfSound class from a waveform sound specified either by a byte array.
Top
Remarks

Sample values are stored in the Stream with the most significant bits first (big-endian order for samples larger than 8 bits). Samples that are not a multiple of 8 bits are packed into consecutive bytes, starting at the most significant end. If a sample extends across a byte boundary, the most significant bits are placed in the first byte, followed by less significant bits in subsequent bytes. For dual-channel stereophonic sounds, the samples are stored in an interleaved format, with each sample value for the left channel (channel 1) preceding the corresponding sample for the right(channel 2).

See Also