Pdf |
The PdfSound type exposes the following members.
| Name | Description | |
|---|---|---|
| PdfSound(PdfTypeStream) | Creates a new instance of PdfSound and initialize it with specified stream | |
| PdfSound(Byte, SoundEncodingFormats, Int32, Int32, Int32) | Creates new instance of PdfSound. |
| Name | Description | |
|---|---|---|
| Bps | Gets or sets the number of bits per sample value per channel. | |
| Channels | Gets or sets the number of sound channels. | |
| CompressionFormat | The sound compression format used on the sample data. | |
| Encoding | Gets or sets the encoding format for the sample data. | |
| IsDisposed |
Gets a value indicating whether the object has been disposed of.
(Overrides PdfWrapperIsDisposed) | |
| Parameters | Gets or sets optional parameters specific to the sound compression format used. | |
| Rate | Gets or sets the sampling rate, in samples per second. | |
| Stream | Gets underlying stream. |
| Name | Description | |
|---|---|---|
| Dispose |
Releases all resources used by the PdfSound.
(Overrides PdfWrapperDispose(Boolean)) | |
| FromWave | Creates a new instance of PdfSound class from a waveform sound specified either by a byte array. |
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).