AddAudioFrameEmbedded()

IShapeCollection::AddAudioFrameEmbedded(float, float, float, float, System::SharedPtr<System::IO::Stream>) method

Creates a new audio frame with an embedded WAV file and adds it to the end of the shape collection. The embedded audio is added to the Presentation.Audios collection.

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::AddAudioFrameEmbedded(float x, float y, float width, float height, System::SharedPtr<System::IO::Stream> audio_stream)=0

Arguments

ParameterTypeDescription
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.

IShapeCollection::AddAudioFrameEmbedded(float, float, float, float, System::SharedPtr<IAudio>) method

Creates a new audio frame and adds it to the end of the shape collection using an existing audio object from the Presentation.Audios list.

virtual System::SharedPtr<IAudioFrame> Aspose::Slides::IShapeCollection::AddAudioFrameEmbedded(float x, float y, float width, float height, System::SharedPtr<IAudio> audio)=0

Arguments

ParameterTypeDescription
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.Audios collection.

Return Value

The newly created IAudioFrame.

See Also