Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
ConnDetect Class Reference

The main connection detection class. More...

#include <conndetect.h>

Public Member Functions

bool connectionDetected ()
 The write task. More...
 
 ConnDetect (BelaContext *context)
 Initalize the connection detector. More...
 
 ~ConnDetect ()
 
void addFilteredFrame (const FilteredFrame &filteredframe)
 Add a new filtered frame of data to the buffer the detector. More...
 

Friends

void raw_conndetect_auxtask_callback (void *)
 

Detailed Description

The main connection detection class.

Definition at line 83 of file conndetect.h.

Constructor & Destructor Documentation

◆ ConnDetect()

ConnDetect::ConnDetect ( BelaContext *  context)

Initalize the connection detector.

Parameters
contextA BelaContext pointer, see Bela for contents. Most important attributes:

Definition at line 68 of file conndetect.cpp.

◆ ~ConnDetect()

ConnDetect::~ConnDetect ( )

Definition at line 90 of file conndetect.cpp.

Member Function Documentation

◆ addFilteredFrame()

void ConnDetect::addFilteredFrame ( const FilteredFrame filteredframe)

Add a new filtered frame of data to the buffer the detector.

Parameters
filteredframeFiltered frame of data.

Definition at line 101 of file conndetect.cpp.

◆ connectionDetected()

bool ConnDetect::connectionDetected ( )

The write task.

Call this function to see whether a connection has been detected. Should be called from out of render().

Returns
true if connection is detected.

Definition at line 120 of file conndetect.cpp.

Friends And Related Function Documentation

◆ raw_conndetect_auxtask_callback

void raw_conndetect_auxtask_callback ( void *  raw_ptr)
friend

Definition at line 63 of file conndetect.cpp.


The documentation for this class was generated from the following files: