mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Switched some missed .get(DataType::AUDIO) -> n_audio.
Fixed some 8-space tabs. git-svn-id: svn://localhost/ardour2/trunk@1832 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
aa3bb18b17
commit
809b64e41c
2 changed files with 8 additions and 8 deletions
|
|
@ -263,7 +263,7 @@ PannerUI::update_pan_state ()
|
||||||
void
|
void
|
||||||
PannerUI::setup_pan ()
|
PannerUI::setup_pan ()
|
||||||
{
|
{
|
||||||
uint32_t nouts = _io->n_outputs ().get(ARDOUR::DataType::AUDIO);
|
uint32_t nouts = _io->n_outputs ().n_audio();
|
||||||
|
|
||||||
if (nouts == 0 || nouts == 1) {
|
if (nouts == 0 || nouts == 1) {
|
||||||
|
|
||||||
|
|
@ -362,7 +362,7 @@ PannerUI::setup_pan ()
|
||||||
}
|
}
|
||||||
|
|
||||||
update_pan_sensitive ();
|
update_pan_sensitive ();
|
||||||
panner->reset (_io->n_inputs().get(ARDOUR::DataType::AUDIO));
|
panner->reset (_io->n_inputs().n_audio());
|
||||||
panner->set_size_request (-1, 61);
|
panner->set_size_request (-1, 61);
|
||||||
|
|
||||||
/* and finally, add it to the panner frame */
|
/* and finally, add it to the panner frame */
|
||||||
|
|
@ -449,7 +449,7 @@ PannerUI::effective_pan_display ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (_io->n_outputs().get(ARDOUR::DataType::AUDIO)) {
|
switch (_io->n_outputs().n_audio()) {
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
/* relax */
|
/* relax */
|
||||||
|
|
@ -486,7 +486,7 @@ PannerUI::pan_changed (void *src)
|
||||||
panning_link_button.set_sensitive (true);
|
panning_link_button.set_sensitive (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t nouts = _io->n_outputs().get(ARDOUR::DataType::AUDIO);
|
uint32_t nouts = _io->n_outputs().n_audio();
|
||||||
|
|
||||||
switch (nouts) {
|
switch (nouts) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -543,7 +543,7 @@ PannerUI::pan_value_changed (uint32_t which)
|
||||||
{
|
{
|
||||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &PannerUI::pan_value_changed), which));
|
ENSURE_GUI_THREAD (bind (mem_fun(*this, &PannerUI::pan_value_changed), which));
|
||||||
|
|
||||||
if (_io->n_outputs().get(ARDOUR::DataType::AUDIO) > 1 && which < _io->panner().size()) {
|
if (_io->n_outputs().n_audio() > 1 && which < _io->panner().size()) {
|
||||||
float xpos;
|
float xpos;
|
||||||
float val = pan_adjustments[which]->get_value ();
|
float val = pan_adjustments[which]->get_value ();
|
||||||
|
|
||||||
|
|
@ -613,7 +613,7 @@ PannerUI::update_pan_sensitive ()
|
||||||
{
|
{
|
||||||
bool sensitive = !(_io->panner().automation_state() & Play);
|
bool sensitive = !(_io->panner().automation_state() & Play);
|
||||||
|
|
||||||
switch (_io->n_outputs().get(ARDOUR::DataType::AUDIO)) {
|
switch (_io->n_outputs().n_audio()) {
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -261,13 +261,13 @@ RouteParams_UI::setup_io_frames()
|
||||||
// input
|
// input
|
||||||
_input_iosel = new IOSelector (*session, _route, true);
|
_input_iosel = new IOSelector (*session, _route, true);
|
||||||
_input_iosel->redisplay ();
|
_input_iosel->redisplay ();
|
||||||
input_frame.add (*_input_iosel);
|
input_frame.add (*_input_iosel);
|
||||||
input_frame.show_all();
|
input_frame.show_all();
|
||||||
|
|
||||||
// output
|
// output
|
||||||
_output_iosel = new IOSelector (*session, _route, false);
|
_output_iosel = new IOSelector (*session, _route, false);
|
||||||
_output_iosel->redisplay ();
|
_output_iosel->redisplay ();
|
||||||
output_frame.add (*_output_iosel);
|
output_frame.add (*_output_iosel);
|
||||||
output_frame.show_all();
|
output_frame.show_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue