Click or drag to resize

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
)

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
ExceptionCondition
[!:PDFNetException] PDFNetException the PDFNet exception
See Also