blob: d3fac243b132fd5e328350ed1d2dfda7c1f713bb [file] [log] [blame]
Heinrich Schuchardtce2f0c62022-12-04 16:16:12 +01001.. SPDX-License-Identifier: GPL-2.0+
2.. Copyright 2022, Heinrich Schuchardt <xypron.glpk@gmx.de>
3
4sound command
5=============
6
7Synopsis
8--------
9
10::
11
12 sound init
13 sound play [len [freq]]
14
15Description
16-----------
17
18The *sound* command is used to play a beep sound.
19
20sound init
21 initializes the sound driver.
22
23sound play
24 plays a square wave sound. It does not depend on previously calling
25 *sound init*.
26
27len
28 duration of the sound in ms, defaults to 1000 ms
29
30freq
31 frequency of the sound in Hz, defaults to 400 Hz
32
33Configuration
34-------------
35
36The sound command is enabled by CONFIG_CMD_SOUND=y.
37
38Return value
39------------
40
41The return value $? is 0 (true) if the command succeeds, 1 (false) otherwise.