Loading...
Searching...
No Matches
furi_hal_speaker.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <furi.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
14void furi_hal_speaker_init(void);
15
18
27FURI_WARN_UNUSED bool furi_hal_speaker_acquire(uint32_t timeout);
28
34
42
50void furi_hal_speaker_start(float frequency, float volume);
51
58void furi_hal_speaker_set_volume(float volume);
59
64void furi_hal_speaker_stop(void);
65
66#ifdef __cplusplus
67}
68#endif
void furi_hal_speaker_release(void)
Release speaker ownership.
Definition furi_hal_speaker.c:47
bool furi_hal_speaker_is_mine(void)
Check current process speaker ownership.
Definition furi_hal_speaker.c:60
void furi_hal_speaker_init(void)
Init speaker.
Definition furi_hal_speaker.c:21
void furi_hal_speaker_set_volume(float volume)
Set volume.
Definition furi_hal_speaker.c:121
void furi_hal_speaker_stop(void)
Stop playback.
Definition furi_hal_speaker.c:135
void furi_hal_speaker_deinit(void)
Deinit speaker.
Definition furi_hal_speaker.c:27
void furi_hal_speaker_start(float frequency, float volume)
Play a note.
Definition furi_hal_speaker.c:98
FURI_WARN_UNUSED bool furi_hal_speaker_acquire(uint32_t timeout)
Acquire speaker ownership.
Definition furi_hal_speaker.c:33