40 |
class JackIO : public AudioIO { |
class JackIO : public AudioIO { |
41 |
public: |
public: |
42 |
JackIO(); |
JackIO(); |
43 |
int Initialize(uint Channels); |
int Initialize(uint Channels, String OutputPorts[2]); |
44 |
void Activate(); |
void Activate(); |
45 |
void Close(); |
void Close(); |
46 |
void* GetInterleavedOutputBuffer(); |
void* GetInterleavedOutputBuffer(); |
47 |
void* GetChannelOutputBufer(uint Channel); |
void* GetChannelOutputBufer(uint Channel); |
48 |
int Process(uint Samples); // FIXME: should be private |
int Process(uint Samples); // FIXME: should be private |
49 |
private: |
private: |
|
typedef std::string String; |
|
|
|
|
50 |
jack_client_t* Client; |
jack_client_t* Client; |
51 |
jack_port_t* Ports[2]; |
jack_port_t* Ports[2]; |
52 |
|
jack_port_t* playback_port[2]; |
53 |
uint PendingSamples; |
uint PendingSamples; |
54 |
}; |
}; |
55 |
|
|