mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
fix AU configure_io return value (bool not int)
This commit is contained in:
parent
700513e411
commit
6977bd945e
1 changed files with 4 additions and 4 deletions
|
|
@ -1043,7 +1043,7 @@ AUPlugin::configure_io (ChanCount in, ChanCount out)
|
|||
if (initialized) {
|
||||
//if we are already running with the requested i/o config, bail out here
|
||||
if ( (audio_in==input_channels) && (audio_out==output_channels) ) {
|
||||
return 0;
|
||||
return true;
|
||||
} else {
|
||||
deactivate ();
|
||||
}
|
||||
|
|
@ -1071,13 +1071,13 @@ AUPlugin::configure_io (ChanCount in, ChanCount out)
|
|||
streamFormat.mChannelsPerFrame = audio_in;
|
||||
|
||||
if (set_input_format (streamFormat) != 0) {
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
streamFormat.mChannelsPerFrame = audio_out;
|
||||
|
||||
if (set_output_format (streamFormat) != 0) {
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* reset plugin info to show currently configured state */
|
||||
|
|
@ -1089,7 +1089,7 @@ AUPlugin::configure_io (ChanCount in, ChanCount out)
|
|||
activate ();
|
||||
}
|
||||
|
||||
return 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
ChanCount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue