Library.Signal.Various.PlaySound

Navigation:  Library > Signal > Various >

Library.Signal.Various.PlaySound

Previous pageReturn to chapter overviewNext page

Library

Signal\Various

Use

Domains: Continuous, Discrete. Size: 1-D. Allowed in: Block Diagrams.

Description

This model generates a sound whenever the input is true. The sound must be stored on a .wav-file. At every simulation point where the input is true, the sound is restarted. This may result in the sound not to be hear because of every restart. Therefor it is best to make the input only true at one simulation point. This is demonstrated in the Examples library by the model:

 

Examples\Tips and Tricks\PlaySound

 

Interface

Inputs

Description

input

Boolean: If true, a sound is played

Parameters

 

wave

Sting: File name of the .wav-file (including the path)