AddAudio()

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

ParameterTypeDescription
audioSystem::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

ParameterTypeDescription
streamSystem::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

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Stream to add video audio from.
loadingStreamBehaviorLoadingStreamBehaviorThe 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

ParameterTypeDescription
audioDataSystem::ArrayPtr<uint8_t>Audio bytes.

Return Value

Added audio.

See Also