void launch_device_control_app();
bool is_realtime() const;
- bool connected() const;
// for the user which hold state_lock to check if reset operation is pending
bool is_reset_requested() const { return g_atomic_int_get(const_cast<gint*>(&_hw_reset_request_count)); }
*/
virtual const std::string& my_name() const = 0;
- /** Return true if the underlying mechanism/API is still available
- * for us to utilize. return false if some or all of the AudioBackend
- * API can no longer be effectively used.
- */
- virtual bool available() const = 0;
-
/** Return the maximum size of a port name
*/
virtual uint32_t port_name_size() const = 0;
return _backend->is_realtime();
}
-bool
-AudioEngine::connected() const
-{
- if (!_backend) {
- return false;
- }
-
- return _backend->available();
-}
-
void
AudioEngine::transport_start ()
{
return _instance_name;
}
-bool
-AlsaAudioBackend::available () const
-{
- return _run && _active;
-}
-
uint32_t
AlsaAudioBackend::port_name_size () const
{
void* private_handle () const;
const std::string& my_name () const;
- bool available () const;
uint32_t port_name_size () const;
int set_port_name (PortHandle, const std::string&);
return _instance_name;
}
-bool
-CoreAudioBackend::available () const
-{
- return _run && _active_fw && _active_ca;
-}
-
uint32_t
CoreAudioBackend::port_name_size () const
{
void* private_handle () const;
const std::string& my_name () const;
- bool available () const;
uint32_t port_name_size () const;
int set_port_name (PortHandle, const std::string&);
return _instance_name;
}
-bool
-DummyAudioBackend::available () const
-{
- return _running;
-}
-
uint32_t
DummyAudioBackend::port_name_size () const
{
void* private_handle () const;
const std::string& my_name () const;
- bool available () const;
uint32_t port_name_size () const;
int set_port_name (PortHandle, const std::string&);
std::string name() const;
void* private_handle() const;
- bool available() const;
bool is_realtime () const;
bool requires_driver_selection() const;
void set_jack_callbacks ();
int reconnect_to_jack ();
+ bool available() const;
+
struct ThreadData {
JACKAudioBackend* engine;
boost::function<void()> f;
return _instance_name;
}
-bool
-PortAudioBackend::available () const
-{
- return _run && _active;
-}
-
uint32_t
PortAudioBackend::port_name_size () const
{
void* private_handle () const;
const std::string& my_name () const;
- bool available () const;
uint32_t port_name_size () const;
int set_port_name (PortHandle, const std::string&);