Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
Loading...
Searching...
No Matches
libraries
Debounce
BelaDebounce.h
1
#pragma once
2
#include <
Bela.h
>
3
#include <libraries/Debounce/Debounce.h>
4
8
9
class
BelaDebounce :
public
Debounce
10
{
11
public
:
12
struct
Settings
{
13
BelaContext
*
context
;
14
unsigned
int
channel
;
15
double
debounceMs
;
16
};
17
BelaDebounce();
21
BelaDebounce(
const
Settings
& settings);
27
int
setup
(
const
Settings
& settings);
34
bool
process
(
BelaContext
* context);
41
bool
process
(
BelaContext
* context,
unsigned
int
frame);
42
using
Debounce::process
;
43
private
:
44
unsigned
int
channel;
45
};
Bela.h
Main Bela public API.
BelaDebounce::process
bool process(BelaContext *context)
Definition
BelaDebounce.cpp:23
BelaDebounce::setup
int setup(const Settings &settings)
Definition
BelaDebounce.cpp:11
Debounce::process
bool process(bool input)
Definition
Debounce.h:57
BelaContext
Structure holding audio and sensor settings and pointers to I/O data buffers.
Definition
Bela.h:231
BelaDebounce::Settings
Definition
BelaDebounce.h:12
BelaDebounce::Settings::channel
unsigned int channel
Bela digital in channels to which the switch is connected.
Definition
BelaDebounce.h:14
BelaDebounce::Settings::context
BelaContext * context
BelaContext.
Definition
BelaDebounce.h:13
BelaDebounce::Settings::debounceMs
double debounceMs
Debounce time in milliseconds.
Definition
BelaDebounce.h:15
Generated on
for Bela by
1.16.0