get_Sound()
IEffect::get_Sound() method
Defined embedded sound for effect. Read IAudio.
virtual System::SharedPtr<IAudio> Aspose::Slides::Animation::IEffect::get_Sound()=0
Remarks
auto presentation = System::MakeObject<Presentation>(u"demo.pptx");
auto slide = presentation->get_Slides()->idx_get(0);
// Gets the effects sequence for the slide
auto effectsSequence = slide->get_Timeline()->get_MainSequence();
for (auto effect : effectsSequence)
{
if (effect->get_Sound() == nullptr)
{
continue;
}
// Extracts the effect sound in byte array
System::ArrayPtr<uint8_t> audio = effect->get_Sound()->get_BinaryData();
}
See Also
- Typedef SharedPtr
- Class IAudio
- Class IEffect
- Namespace Aspose::Slides::Animation
- Library Aspose.Slides