 | PdfiumFPDFTOOLS_GetWaveData Method |
Convert audio WAV file to PDF compatible format.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static byte[] FPDFTOOLS_GetWaveData(
byte[] waveData,
out SoundEncodingFormats format,
out int chanels,
out int rate,
out int bps
)
Public Shared Function FPDFTOOLS_GetWaveData (
waveData As Byte(),
<OutAttribute> ByRef format As SoundEncodingFormats,
<OutAttribute> ByRef chanels As Integer,
<OutAttribute> ByRef rate As Integer,
<OutAttribute> ByRef bps As Integer
) As Byte()
public:
static array<unsigned char>^ FPDFTOOLS_GetWaveData(
array<unsigned char>^ waveData,
[OutAttribute] SoundEncodingFormats% format,
[OutAttribute] int% chanels,
[OutAttribute] int% rate,
[OutAttribute] int% bps
)
static member FPDFTOOLS_GetWaveData :
waveData : byte[] *
format : SoundEncodingFormats byref *
chanels : int byref *
rate : int byref *
bps : int byref -> byte[]
public static byte[] FPDFTOOLS_GetWaveData(
byte[] waveData,
/** @attribute OutAttribute */ /** @ref */SoundEncodingFormats format,
/** @attribute OutAttribute */ /** @ref */int chanels,
/** @attribute OutAttribute */ /** @ref */int rate,
/** @attribute OutAttribute */ /** @ref */int bps
)
Patagames.Pdf.Pdfium.FPDFTOOLS_GetWaveData = function(waveData, format, chanels, rate, bps);
Parameters
- waveData Byte
- An array of bytes containing audio file.
- format SoundEncodingFormats
- Gets the encoding format of the returned data.
- chanels Int32
- Gets the number of sound channels.
- rate Int32
- Gets the sampling rate, in samples per second.
- bps Int32
- Gets the number of bits per sample.
Return Value
ByteAn array of bytes containing audio samples encoded to PDF compatible format.
ExceptionsException | Condition |
---|
PdfiumException | code= ERROR_BAD_FORMAT(11): waveData does not contain RIFF or RIFX section. |
PdfiumException | code= ERROR_UNEXPECTED_FORMAT(536871428): waveData is not in PCM format. |
PdfiumException | code= ERROR_UNEXPECTED_PARAMETER(536871429): bitsPerSample of waveData has wrong value. |
PdfiumException | code= ERROR_DOUBLE_SECTION(536871430): waveData has more than one FMT or DATA section. |
PdfiumException | code=ERROR_UNEXPECTED_DATA_LENGTH(536871433): the length of DATA section is wrong. |
Remarks Note |
---|
Currently supported PCM WAV files only. |
See Also