mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
[Summary] Provided correct implementation for available channel countings
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 461867]
This commit is contained in:
parent
8123974198
commit
509b67bcc3
2 changed files with 36 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ public:
|
|||
ARDOUR::pframes_t get_default_buffer_size() const;
|
||||
void available_buffer_sizes_for_current_device(std::vector<ARDOUR::pframes_t>&) const;
|
||||
|
||||
uint32_t get_available_inputs_count() const {return _current_state->input_channel_states.size(); }
|
||||
uint32_t get_available_outputs_count () const {return _current_state->output_channel_states.size(); }
|
||||
uint32_t get_available_inputs_count() const;
|
||||
uint32_t get_available_outputs_count () const;
|
||||
|
||||
void get_physical_audio_inputs (std::vector<std::string>&);
|
||||
void get_physical_audio_outputs (std::vector<std::string>&);
|
||||
|
|
|
|||
|
|
@ -382,6 +382,40 @@ EngineStateController::set_new_buffer_size_in_controller(pframes_t buffer_size)
|
|||
}
|
||||
|
||||
|
||||
uint32_t
|
||||
EngineStateController::get_available_inputs_count() const
|
||||
{
|
||||
uint32_t available_channel_count = 0;
|
||||
|
||||
ChannelStateList::const_iterator iter = _current_state->input_channel_states.begin();
|
||||
|
||||
for (; iter != _current_state->input_channel_states.end(); ++iter) {
|
||||
if (iter->active) {
|
||||
++available_channel_count;
|
||||
}
|
||||
}
|
||||
|
||||
return available_channel_count;
|
||||
}
|
||||
|
||||
|
||||
uint32_t
|
||||
EngineStateController::get_available_outputs_count () const
|
||||
{
|
||||
uint32_t available_channel_count = 0;
|
||||
|
||||
ChannelStateList::const_iterator iter = _current_state->output_channel_states.begin();
|
||||
|
||||
for (; iter != _current_state->output_channel_states.end(); ++iter) {
|
||||
if (iter->active) {
|
||||
++available_channel_count;
|
||||
}
|
||||
}
|
||||
|
||||
return available_channel_count;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
EngineStateController::get_physical_audio_inputs(std::vector<std::string>& port_names)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue