Click or drag to resize

PdfSound Class

Represents a sound object
Inheritance Hierarchy
SystemObject
  Patagames.Pdf.Net.WrappersPdfWrapper
    Patagames.Pdf.Net.WrappersPdfSound

Namespace: Patagames.Pdf.Net.Wrappers
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.89.2704
Syntax
public class PdfSound : PdfWrapper

The PdfSound type exposes the following members.

Constructors
 NameDescription
Public methodPdfSound(PdfTypeStream) Creates a new instance of PdfSound and initialize it with specified stream
Public methodPdfSound(Byte, SoundEncodingFormats, Int32, Int32, Int32) Creates new instance of PdfSound.
Top
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 propertyIsDisposed Gets a value indicating whether the object has been disposed of.
(Overrides PdfWrapperIsDisposed)
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