Click or drag to resize

SlideShowTransitionPlaySound Method (Stream, String)

Specifies the sound to be played when the transition is activated.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1032 (21.3.35.1032)
Syntax
public AudioContent PlaySound(
	Stream stream,
	string soundName
)

Parameters

stream
Type: System.IOStream
An audio stream in a Waveform Audio File Format (Wav).
soundName
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.

Return Value

Type: AudioContent
The sound to be played when the transition is activated.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is .
ArgumentExceptionstream is not readable.
Remarks

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.

See Also