I want to find...

Search

Shares

Table of Content

86HMI::stopSound()

[General Functions]

Description

Stop the sound.

Syntax

void stopSound(AudioSample* sample) { sample->stop(); }
void stopSound(int soundNo);
void stopSound(char* description);

Parameters

  • [in] sample
    Sample sound.
  • [in] soundNo
    Sound file number.
  • [in] description
    Sound description.

Return

None.

Example

#include "myhmi.h"

void setup() {
  Hmi.begin();
  // put your setup code here, to run once:
  Hmi.stopSound(1);
}

void loop() {
  // ...
}

Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.

Scroll to Top