InsertAudioFrameEmbedded()

ShapeCollection::InsertAudioFrameEmbedded(int32_t, float, float, float, float, System::SharedPtr<System::IO::Stream>) method

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::get_Audios collection.

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::InsertAudioFrameEmbedded(int32_t index, float x, float y, float width, float height, System::SharedPtr<System::IO::Stream> audio_stream) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the audio frame.
xfloatThe x-coordinate of the new audio frame, in points.
yfloatThe y-coordinate of the new audio frame, in points.
widthfloatThe width of the new audio frame, in points.
heightfloatThe height of the new audio frame, in points.
audio_streamSystem::SharedPtr<System::IO::Stream>An input stream containing WAV audio data to embed.

Return Value

The newly created IAudioFrame.

ShapeCollection::InsertAudioFrameEmbedded(int32_t, float, float, float, float, System::SharedPtr<IAudio>) method

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

System::SharedPtr<IAudioFrame> Aspose::Slides::ShapeCollection::InsertAudioFrameEmbedded(int32_t index, float x, float y, float width, float height, System::SharedPtr<IAudio> audio) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the audio frame.
xfloatThe x-coordinate of the new audio frame, in points.
yfloatThe y-coordinate of the new audio frame, in points.
widthfloatThe width of the new audio frame, in points.
heightfloatThe height of the new audio frame, in points.
audioSystem::SharedPtr<IAudio>An IAudio instance from the Presentation::get_Audios collection to embed.

Return Value

The newly created IAudioFrame.

See Also