AddAudio()
Contents
[
Hide
]IAudioCollection::AddAudio(System::SharedPtr<IAudio>) method
Adds a copy of an audio file from an another presentation.
virtual System::SharedPtr<IAudio> Aspose::Slides::IAudioCollection::AddAudio(System::SharedPtr<IAudio> audio)=0
Arguments
Parameter | Type | Description |
---|---|---|
audio | System::SharedPtr<IAudio> | Source audio. |
Return Value
Added audio.
IAudioCollection::AddAudio(System::SharedPtr<System::IO::Stream>) method
Creates and adds a audio to a presentation from stream.
virtual System::SharedPtr<IAudio> Aspose::Slides::IAudioCollection::AddAudio(System::SharedPtr<System::IO::Stream> stream)=0
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Stream to add audio from. |
Return Value
Added audio.
- Deprecated
- Use AddAudio(Stream stream, LoadingStreamBehavior loadingStreamBehavior). The method will be removed in version 17.10.
IAudioCollection::AddAudio(System::SharedPtr<System::IO::Stream>, LoadingStreamBehavior) method
Creates and adds a audio to a presentation from stream.
virtual System::SharedPtr<IAudio> Aspose::Slides::IAudioCollection::AddAudio(System::SharedPtr<System::IO::Stream> stream, LoadingStreamBehavior loadingStreamBehavior)=0
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Stream to add video audio from. |
loadingStreamBehavior | LoadingStreamBehavior | The behavior which will be applied to the stream. |
Return Value
Added audio.
IAudioCollection::AddAudio(System::ArrayPtr<uint8_t>) method
Creates and adds a audio to a presentation from byte array.
virtual System::SharedPtr<IAudio> Aspose::Slides::IAudioCollection::AddAudio(System::ArrayPtr<uint8_t> audioData)=0
Arguments
Parameter | Type | Description |
---|---|---|
audioData | System::ArrayPtr<uint8_t> | Audio bytes. |
Return Value
Added audio.
See Also
- Enum LoadingStreamBehavior
- Typedef SharedPtr
- Typedef ArrayPtr
- Class IAudio
- Class IAudioCollection
- Class Stream
- Namespace Aspose::Slides
- Library Aspose.Slides