stopSound()

Stops the playback of a WAV file.

Synopsis

bool stopSound();

Parameters

Parameter Description
none -

Return value

Returns "TRUE" if the function could be executed successfully, otherwise "FALSE".

Description

Stops the playback of WAV files.

It is to consider, that the function stopSound() can only stop the sound of the current process! So it is not possible to stop the sound that has been started by another manager, e.g. a second UI. This restriction only applies when using Windows.

Example

main()
{
  startSound(PROJ_PATH+"data/sounds/DOORBELL.wav", TRUE);
  delay(120);
  stopSound();
}

Assignment

Miscellaneous functions

Availability

CTRL