flipbip_speaker.c 671 B

123456789101112131415161718192021222324252627
  1. // #include "flipbip_speaker.h"
  2. // #include "../flipbip.h"
  3. // #define NOTE_INPUT 587.33f
  4. // void flipbip_play_input_sound(void* context) {
  5. // FlipBip* app = context;
  6. // if (app->speaker != 1) {
  7. // return;
  8. // }
  9. // float volume = 1.0f;
  10. // if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(30)) {
  11. // furi_hal_speaker_start(NOTE_INPUT, volume);
  12. // }
  13. // }
  14. // void flipbip_stop_all_sound(void* context) {
  15. // FlipBip* app = context;
  16. // if (app->speaker != 1) {
  17. // return;
  18. // }
  19. // if(furi_hal_speaker_is_mine()) {
  20. // furi_hal_speaker_stop();
  21. // furi_hal_speaker_release();
  22. // }
  23. // }