changed callbacks to use static_cast

This commit is contained in:
kennypm
2022-02-18 02:13:43 -05:00
parent bc8517fd08
commit c7b09eea11
2 changed files with 31 additions and 18 deletions

View File

@ -15,16 +15,20 @@ class JACK : public ALabel {
JACK(const std::string&, const Json::Value&);
~JACK() = default;
auto update() -> void;
jack_nframes_t bufsize_;
jack_client_t* client_;
unsigned int xruns_;
std::string state_;
pthread_t jack_thread_;
int bufSize(unsigned int size);
int xrun();
void shutdown();
private:
std::string JACKState();
jack_client_t* client_;
jack_nframes_t bufsize_;
jack_nframes_t samplerate_;
unsigned int xruns_;
std::string state_;
pthread_t jack_thread_;
util::SleeperThread thread_;
};