我想找...

搜尋

分享

目錄

86HMI::stopSound()

[General Functions]

描述

Stop the sound.

語法

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

參數

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

Return

範例

#include "myhmi.h"

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

void loop() {
  // ...
}

Please see the 86HMI 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.

返回頂端