Etterna 0.74.4
Loading...
Searching...
No Matches
RageSoundDriver_JACK.h
1#ifndef RAGE_SOUND_JACK
2#define RAGE_SOUND_JACK
3
4#include "RageSoundDriver.h"
5#include <jack/jack.h>
6
7#define USE_RAGE_SOUND_JACK
8
10{
11 public:
14
15 std::string Init();
16
17 int GetSampleRate() const;
18 int64_t GetPosition() const;
19
20 private:
21 jack_client_t* client;
22 jack_port_t* port_l;
23 jack_port_t* port_r;
24
25 int sample_rate;
26
27 // Helper for Init()
28 std::string ConnectPorts();
29
30 // JACK callbacks and trampolines
31 int ProcessCallback(jack_nframes_t nframes);
32 static int ProcessTrampoline(jack_nframes_t nframes, void* arg);
33 int SampleRateCallback(jack_nframes_t nframes);
34 static int SampleRateTrampoline(jack_nframes_t nframes, void* arg);
35};
36
37#endif
Definition RageSoundDriver_JACK.h:10
Definition RageSoundDriver.h:15