IAudioCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IAudioCollection extends IGenericCollection<IAudio>

Represents a collection of embedded audio files.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
addAudio(IAudio audio)Adds a copy of an audio file from an another presentation.
addAudio(InputStream stream)Creates and adds a audio to a presentation from stream.
addAudio(InputStream stream, int loadingStreamBehavior)Creates and adds a audio to a presentation from stream.
addAudio(byte[] audioData)Creates and adds a audio to a presentation from byte array.

get_Item(int index)

public abstract IAudio get_Item(int index)

Gets the element at the specified index. Read-only IAudio.

Parameters:

ParameterTypeDescription
indexint

Returns: IAudio

addAudio(IAudio audio)

public abstract IAudio addAudio(IAudio audio)

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

Parameters:

ParameterTypeDescription
audioIAudioSource audio.

Returns: IAudio - Added audio.

addAudio(InputStream stream)

public abstract IAudio addAudio(InputStream stream)

Creates and adds a audio to a presentation from stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamStream to add audio from.

Returns: IAudio - Added audio.

addAudio(InputStream stream, int loadingStreamBehavior)

public abstract IAudio addAudio(InputStream stream, int loadingStreamBehavior)

Creates and adds a audio to a presentation from stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamStream to add video audio from.
loadingStreamBehaviorintThe LoadingStreamBehavior which will be applied to the stream.

Returns: IAudio - Added audio.

addAudio(byte[] audioData)

public abstract IAudio addAudio(byte[] audioData)

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

Parameters:

ParameterTypeDescription
audioDatabyte[]Audio bytes.

Returns: IAudio - Added audio.