Sound
IEffect.Sound property
Defined embedded sound for effect. Read/write IAudio
.
public IAudio Sound { get; set; }
Examples
[C#]
using (Presentation presentation = new Presentation("demo.pptx"))
{
ISlide slide = presentation.Slides[0];
// Gets the effects sequence for the slide
ISequence effectsSequence = slide.Timeline.MainSequence;
foreach (IEffect effect in effectsSequence)
{
if (effect.Sound == null)
continue;
// Extracts the effect sound in byte array
byte[] audio = effect.Sound.BinaryData;
}
}
See Also
- interface IAudio
- interface IEffect
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides