InsertAudioFrameEmbedded()

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

Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only. It adds new audio into Presentation.Audios list.

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

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which value should be inserted.
xfloatX coordinate of a new audio frame.
yfloatY coordinate of a new audio frame.
widthfloatWidth of a new audio frame.
heightfloatHeight of a new audio frame.
audio_streamSystem::SharedPtr<System::IO::Stream>Audio stream.

Return Value

Created AudioFrame object.

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

Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list.

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

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which value should be inserted.
xfloatX coordinate of a new audio frame.
yfloatY coordinate of a new audio frame.
widthfloatWidth of a new audio frame.
heightfloatHeight of a new audio frame.
audioSystem::SharedPtr<IAudio>Audio from Presentation.Audios list.

Return Value

Created AudioFrame object.

See Also