get_FadeOutDuration()
AudioFrame::get_FadeOutDuration() method
Specifies the time duration for the ending fade-out of the media in milliseconds. Read float.
float Aspose::Slides::AudioFrame::get_FadeOutDuration() override
Remarks
Example:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
// Add Audio Frame
System::SharedPtr<IAudio> audio = pres->get_Audios()->AddAudio(System::IO::File::ReadAllBytes(u"sampleaudio.mp3"));
System::SharedPtr<IAudioFrame> audioFrame = pres->get_Slide(0)->get_Shapes()->AddAudioFrameEmbedded(50.0f, 50.0f, 100.0f, 100.0f, audio);
// Set the duration of the ending fade for 500ms
audioFrame->set_FadeOutDuration(500.0f);
pres->Save(u"AudioFrameFade_out.pptx", SaveFormat::Pptx);
See Also
- Class AudioFrame
- Namespace Aspose::Slides
- Library Aspose.Slides