change "cpu" in cpu load backend functions
This commit is contained in:
parent
ae6b0b9f1a
commit
ce7bfb489c
|
@ -1213,7 +1213,7 @@ ARDOUR_UI::update_cpu_load ()
|
||||||
should also be changed.
|
should also be changed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
float const c = AudioEngine::instance()->get_cpu_load ();
|
float const c = AudioEngine::instance()->get_dsp_load ();
|
||||||
snprintf (buf, sizeof (buf), _("DSP: <span foreground=\"%s\">%5.1f%%</span>"), c >= 90 ? X_("red") : X_("green"), c);
|
snprintf (buf, sizeof (buf), _("DSP: <span foreground=\"%s\">%5.1f%%</span>"), c >= 90 ? X_("red") : X_("green"), c);
|
||||||
cpu_load_label.set_markup (buf);
|
cpu_load_label.set_markup (buf);
|
||||||
}
|
}
|
||||||
|
|
|
@ -361,7 +361,7 @@ class AudioBackend : public PortEngine {
|
||||||
* Implementations can feel free to smooth the values returned over
|
* Implementations can feel free to smooth the values returned over
|
||||||
* time (e.g. high pass filtering, or its equivalent).
|
* time (e.g. high pass filtering, or its equivalent).
|
||||||
*/
|
*/
|
||||||
virtual float cpu_load() const = 0;
|
virtual float dsp_load() const = 0;
|
||||||
|
|
||||||
/* Transport Control (JACK is the only audio API that currently offers
|
/* Transport Control (JACK is the only audio API that currently offers
|
||||||
the concept of shared transport control)
|
the concept of shared transport control)
|
||||||
|
|
|
@ -86,7 +86,7 @@ public:
|
||||||
int start (bool for_latency_measurement=false);
|
int start (bool for_latency_measurement=false);
|
||||||
int stop (bool for_latency_measurement=false);
|
int stop (bool for_latency_measurement=false);
|
||||||
int freewheel (bool start_stop);
|
int freewheel (bool start_stop);
|
||||||
float get_cpu_load() const ;
|
float get_dsp_load() const ;
|
||||||
void transport_start ();
|
void transport_start ();
|
||||||
void transport_stop ();
|
void transport_stop ();
|
||||||
TransportState transport_state ();
|
TransportState transport_state ();
|
||||||
|
|
|
@ -675,12 +675,12 @@ AudioEngine::freewheel (bool start_stop)
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
float
|
||||||
AudioEngine::get_cpu_load() const
|
AudioEngine::get_dsp_load() const
|
||||||
{
|
{
|
||||||
if (!_backend) {
|
if (!_backend) {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
return _backend->cpu_load ();
|
return _backend->dsp_load ();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -1015,7 +1015,7 @@ JACKAudioBackend::disconnected (const char* why)
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
float
|
||||||
JACKAudioBackend::cpu_load() const
|
JACKAudioBackend::dsp_load() const
|
||||||
{
|
{
|
||||||
GET_PRIVATE_JACK_POINTER_RET(_priv_jack,0);
|
GET_PRIVATE_JACK_POINTER_RET(_priv_jack,0);
|
||||||
return jack_cpu_load (_priv_jack);
|
return jack_cpu_load (_priv_jack);
|
||||||
|
|
|
@ -92,7 +92,7 @@ class JACKAudioBackend : public AudioBackend {
|
||||||
int stop ();
|
int stop ();
|
||||||
int freewheel (bool);
|
int freewheel (bool);
|
||||||
|
|
||||||
float cpu_load() const;
|
float dsp_load() const;
|
||||||
|
|
||||||
pframes_t sample_time ();
|
pframes_t sample_time ();
|
||||||
pframes_t sample_time_at_cycle_start ();
|
pframes_t sample_time_at_cycle_start ();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user