Click or drag to resize

ActionPlaySound Method (Stream)

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

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public AudioContent PlaySound(
	Stream stream
)

Parameters

stream
Type: System.IOStream
An audio stream in a Waveform Audio File Format (Wav).

Return Value

Type: AudioContent
The sound to be played when the action 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 action, either use this method or the Sound property.

See Also