InsertAudioFrameEmbedded()
Contents
[
Hide
]IShapeCollection::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.Audios collection.
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
| Parameter | Type | Description | 
|---|---|---|
| index | int32_t | The zero-based index at which to insert the audio frame. | 
| x | float | The x-coordinate of the new audio frame, in points. | 
| y | float | The y-coordinate of the new audio frame, in points. | 
| width | float | The width of the new audio frame, in points. | 
| height | float | The height of the new audio frame, in points. | 
| audio_stream | System::SharedPtr<System::IO::Stream> | An input stream containing WAV audio data to embed. | 
Return Value
The newly created IAudioFrame.
IShapeCollection::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.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
| Parameter | Type | Description | 
|---|---|---|
| index | int32_t | The zero-based index at which to insert the audio frame. | 
| x | float | The x-coordinate of the new audio frame, in points. | 
| y | float | The y-coordinate of the new audio frame, in points. | 
| width | float | The width of the new audio frame, in points. | 
| height | float | The height of the new audio frame, in points. | 
| audio | System::SharedPtr<IAudio> | An IAudio instance from the Presentation.Audios collection to embed. | 
Return Value
The newly created IAudioFrame.
See Also
- Typedef SharedPtr
 - Class IAudioFrame
 - Class Stream
 - Class IShapeCollection
 - Class IAudio
 - Namespace Aspose::Slides
 - Library Aspose.Slides