Use lambdas instead of static funcs for Jack callbacks

This commit is contained in:
Marcus Weseloh 2024-06-02 12:50:02 +02:00 committed by Johannes Pohl
parent 2921fd69d8
commit 3527c0a2eb
2 changed files with 9 additions and 37 deletions

View file

@ -82,13 +82,6 @@ protected:
bool send_silence_;
/// silence duration before switching the stream to idle
std::chrono::milliseconds idle_threshold_;
static int processCallback(jack_nframes_t nframes, void* arg);
static void jackShutdown(void* arg);
static void jackErrorMessage(const char* msg);
static void jackInfoMessage(const char* msg);
static void jackPortConnect(jack_port_id_t a, jack_port_id_t b, int connect, void* arg);
static void jackPortRegistration(jack_port_id_t port_id, int registered, void* arg);
};
} // namespace streamreader