mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-24 05:34:45 -07:00
Add flipbip app
This commit is contained in:
27
applications/external/flipbip/helpers/flipbip_speaker.c
vendored
Normal file
27
applications/external/flipbip/helpers/flipbip_speaker.c
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// #include "flipbip_speaker.h"
|
||||
// #include "../flipbip.h"
|
||||
|
||||
// #define NOTE_INPUT 587.33f
|
||||
|
||||
// void flipbip_play_input_sound(void* context) {
|
||||
// FlipBip* app = context;
|
||||
// if (app->speaker != 1) {
|
||||
// return;
|
||||
// }
|
||||
// float volume = 1.0f;
|
||||
// if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(30)) {
|
||||
// furi_hal_speaker_start(NOTE_INPUT, volume);
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// void flipbip_stop_all_sound(void* context) {
|
||||
// FlipBip* app = context;
|
||||
// if (app->speaker != 1) {
|
||||
// return;
|
||||
// }
|
||||
// if(furi_hal_speaker_is_mine()) {
|
||||
// furi_hal_speaker_stop();
|
||||
// furi_hal_speaker_release();
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user