class JACKAudioBackend : public AudioBackend {
public:
- JACKAudioBackend (AudioEngine& e, boost::shared_ptr<JackConnection>);
+ JACKAudioBackend (AudioEngine& e, AudioBackendInfo& info, boost::shared_ptr<JackConnection>);
~JACKAudioBackend ();
/* AUDIOBACKEND API */
int set_device_name (const std::string&);
int set_sample_rate (float);
int set_buffer_size (uint32_t);
- int set_sample_format (SampleFormat);
int set_interleaved (bool yn);
int set_input_channels (uint32_t);
int set_output_channels (uint32_t);
std::string device_name () const;
float sample_rate () const;
uint32_t buffer_size () const;
- SampleFormat sample_format () const;
bool interleaved () const;
uint32_t input_channels () const;
uint32_t output_channels () const;
std::string control_app_name () const;
void launch_control_app ();
- int _start (bool for_latency_measurement);
int stop ();
int freewheel (bool);
- float cpu_load() const;
+ float dsp_load() const;
pframes_t sample_time ();
pframes_t sample_time_at_cycle_start ();
int set_port_name (PortHandle, const std::string&);
std::string get_port_name (PortHandle) const;
- PortHandle* get_port_by_name (const std::string&) const;
+ PortHandle get_port_by_name (const std::string&) const;
int get_ports (const std::string& port_name_pattern, DataType type, PortFlags flags, std::vector<std::string>&) const;
*/
JACKSession* _session;
+
+ protected:
+ int _start (bool for_latency_measurement);
};
} // namespace