SoundCreateWithData Method |
Creates a new Sound annotation in the specified document. Accepts raw
audio data, along with a few parameters describing the format of that data
Namespace:
pdftron.PDF.Annots
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static Sound CreateWithData(
SDFDoc doc,
Rect pos,
IFilter source_data,
int bits_per_sample,
int sample_freq,
int num_channels
)
Public Shared Function CreateWithData (
doc As SDFDoc,
pos As Rect,
source_data As IFilter,
bits_per_sample As Integer,
sample_freq As Integer,
num_channels As Integer
) As Sound
public:
static Sound^ CreateWithData(
[InAttribute] SDFDoc^ doc,
[InAttribute] Rect^ pos,
[InAttribute] IFilter^ source_data,
[InAttribute] int bits_per_sample,
[InAttribute] int sample_freq,
[InAttribute] int num_channels
)
pdftron.PDF.Annots.Sound.CreateWithData = function(doc, pos, source_data, bits_per_sample, sample_freq, num_channels);
Parameters
- doc
- Type: pdftron.SDFSDFDoc
A document to which the annotation is added. - pos
- Type: pdftron.PDFRect
A rectangle specifying the annotation's bounds in default user space units. - source_data
- Type: pdftron.FiltersIFilter
The raw sound data for the newly created annot - bits_per_sample
- Type: SystemInt32
The number of bits per sample in source data - sample_freq
- Type: SystemInt32
The number of samples per second present in source data - num_channels
- Type: SystemInt32
The number of audio channels in source_data
Return Value
Type:
Sound A newly created blank Sound annotation.
Exceptions Exception | Condition |
---|
[!:PDFNetException] | PDFNetException the PDFNet exception |
See Also