[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.SoundObject.FromStream

FromStream Method

FromStream(Stream, AudioFormat)

Creates a SoundObject from a specified stream.

Note that only a limited set of audio formats is supported, see AudioFormat for details.

Declaration
public static SoundObject FromStream(Stream stream, AudioFormat audioFormat = AudioFormat.Auto)
Public Shared Function FromStream(stream As Stream, Optional audioFormat As AudioFormat = AudioFormat.Auto) As SoundObject
Parameters
Type Name Description
Stream stream

The stream with audio data.

AudioFormat audioFormat

The audio format.

Returns
Type Description
SoundObject

The created SoundObject.