AddAudio()

AudioCollection::AddAudio(System::SharedPtr<IAudio>) method

Adds a copy of an audio file from an another presentation.

System::SharedPtr<IAudio> Aspose::Slides::AudioCollection::AddAudio(System::SharedPtr<IAudio> audio) override

Arguments

ParameterTypeDescription
audioSystem::SharedPtr<IAudio>Source audio.

Return Value

Added audio.

AudioCollection::AddAudio(System::SharedPtr<System::IO::Stream>) method

Creates and adds a audio to a presentation from stream.

System::SharedPtr<IAudio> Aspose::Slides::AudioCollection::AddAudio(System::SharedPtr<System::IO::Stream> stream) override

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Stream to add audio from.

Return Value

Added audio.

AudioCollection::AddAudio(System::SharedPtr<System::IO::Stream>, LoadingStreamBehavior) method

Creates and adds a audio to a presentation from stream.

System::SharedPtr<IAudio> Aspose::Slides::AudioCollection::AddAudio(System::SharedPtr<System::IO::Stream> stream, LoadingStreamBehavior loadingStreamBehavior) override

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.

AudioCollection::AddAudio(System::ArrayPtr<uint8_t>) method

Creates and adds a audio to a presentation from byte array.

System::SharedPtr<IAudio> Aspose::Slides::AudioCollection::AddAudio(System::ArrayPtr<uint8_t> audioData) override

Arguments

ParameterTypeDescription
audioDataSystem::ArrayPtr<uint8_t>Audio bytes.

Return Value

Added audio.

See Also