InsertAudioFrameEmbedded

InsertAudioFrameEmbedded(int, float, float, float, float, Stream)

Creates a new audio frame with an embedded WAV file and inserts it into the shape collection at the specified index. The embedded audio is added to the Presentation.Audios collection.

public IAudioFrame InsertAudioFrameEmbedded(int index, float x, float y, float width, float height, 
    Stream audio_stream)
ParameterTypeDescription
indexInt32The zero-based index at which to insert the audio frame.
xSingleThe x-coordinate of the new audio frame, in points.
ySingleThe y-coordinate of the new audio frame, in points.
widthSingleThe width of the new audio frame, in points.
heightSingleThe height of the new audio frame, in points.
audio_streamStreamAn input stream containing WAV audio data to embed.

Return Value

The newly created IAudioFrame.

See Also


InsertAudioFrameEmbedded(int, float, float, float, float, IAudio)

Creates a new audio frame and inserts it into the shape collection at the specified index using an existing audio object from the Presentation.Audios list.

public IAudioFrame InsertAudioFrameEmbedded(int index, float x, float y, float width, float height, 
    IAudio audio)
ParameterTypeDescription
indexInt32The zero-based index at which to insert the audio frame.
xSingleThe x-coordinate of the new audio frame, in points.
ySingleThe y-coordinate of the new audio frame, in points.
widthSingleThe width of the new audio frame, in points.
heightSingleThe height of the new audio frame, in points.
audioIAudioAn IAudio instance from the Presentation.Audios collection to embed.

Return Value

The newly created IAudioFrame.

See Also