AddAudioFrameEmbedded()
Contents
[
Hide
]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
| Parameter | Type | Description | 
|---|---|---|
| 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::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
| Parameter | Type | Description | 
|---|---|---|
| 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. | 
Return Value
The newly created IAudioFrame.
See Also
- Typedef SharedPtr
 - Class IAudioFrame
 - Class Stream
 - Class IShapeCollection
 - Class IAudio
 - Namespace Aspose::Slides
 - Library Aspose.Slides