Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
#include <iostream>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <vector>
#include <cmath>
#include <Bela.h>
#include "tools.h"
#include "conndetect.h"
Go to the source code of this file.
Functions | |
bool | StartupSanityChecks (BelaContext *context) |
Perform sanity checks on startup, for the parameters that should be set properly in 'settings'. Mainly checks for the sampling frequency and the number of channels. More... | |
vector< string > | list_dir (const char *path) |
List the contents of a directory path, and return the contents. More... | |
time_t | last_modification_time (const std::string &filepath) |
Determine the last modification time of a file and returns it as a time_t value. More... | |
double | retrieveAsNumber (JSONObject &json, const std::string &str) |
Searches for the key str in the JSON object and returns a the number. Throws a runtime error if the key is not found, or it is not a number. More... | |