SlideShowTransitionPlaySound Method (Stream, String)
Specifies the sound to be played when the transition is activated.
GemBox.Presentation (in GemBox.Presentation.dll) Version: 126.96.36.1994
public AudioContent PlaySound(
Public Function PlaySound (
stream As Stream,
soundName As String
) As AudioContent
- Type: System.IOStream
An audio stream in a Waveform Audio File Format (Wav).
- Type: SystemString
An original name or a given short name used to distinguish this sound from others by providing a human readable name for the attached sound should the user need to identify the sound among others within the UI.
The sound to be played when the transition is activated.
Sound is always stored in a Waveform Audio File Format (Wav) stream that is embedded in the presentation.
Do not set any member on the returned AudioContent because they are not supported in this context (for example, they won't be saved to a PPTX file).
To set a sound for the transition, either use this method or the Sound property.