IAudioCollection
All Implemented Interfaces: com.aspose.slides.IGenericCollection
public interface IAudioCollection extends IGenericCollection<IAudio>
Represents a collection of embedded audio files.
Methods
| Method | Description | 
|---|---|
| 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:
| Parameter | Type | Description | 
|---|---|---|
| index | int | 
Returns: IAudio
addAudio(IAudio audio)
public abstract IAudio addAudio(IAudio audio)
Adds a copy of an audio file from an another presentation.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| audio | IAudio | Source 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:
| Parameter | Type | Description | 
|---|---|---|
| stream | java.io.InputStream | Stream 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:
| Parameter | Type | Description | 
|---|---|---|
| stream | java.io.InputStream | Stream to add video audio from. | 
| loadingStreamBehavior | int | The 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:
| Parameter | Type | Description | 
|---|---|---|
| audioData | byte[] | Audio bytes. | 
Returns: IAudio - Added audio.