mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Distinct engine-states per sample-rate
Previously only the one engine-state per device was saved. However systemic latency depends on the sample-rate (and buffersize)
This commit is contained in:
parent
5a17ca56ea
commit
d66b70f3a2
2 changed files with 41 additions and 18 deletions
|
|
@ -271,6 +271,7 @@ private:
|
|||
StateStruct ()
|
||||
: sample_rate (48000)
|
||||
, buffer_size (1024)
|
||||
, n_periods (0)
|
||||
, input_latency (0)
|
||||
, output_latency (0)
|
||||
, active (false)
|
||||
|
|
@ -281,8 +282,8 @@ private:
|
|||
};
|
||||
|
||||
typedef std::shared_ptr<StateStruct> State;
|
||||
typedef std::list<State> StateList;
|
||||
static bool state_sort_cmp (const State& a, const State& b);
|
||||
typedef std::list<State> StateList;
|
||||
static bool state_sort_cmp (const State& a, const State& b);
|
||||
|
||||
StateList states;
|
||||
|
||||
|
|
@ -290,11 +291,13 @@ private:
|
|||
|
||||
State get_matching_state (const std::string& backend,
|
||||
const std::string& driver,
|
||||
const std::string& device);
|
||||
const std::string& device,
|
||||
const float sample_rate = 0);
|
||||
State get_matching_state (const std::string& backend,
|
||||
const std::string& driver,
|
||||
const std::string& input_device,
|
||||
const std::string& output_device);
|
||||
const std::string& output_device,
|
||||
const float sample_rate = 0);
|
||||
|
||||
State get_saved_state_for_currently_displayed_backend_and_device ();
|
||||
void maybe_display_saved_state ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue