mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
fix incorrect return type for SndFileSource::last_capture_start_frame() in the non-destructive case; fix compiler warnings for utils.cc
git-svn-id: svn://localhost/ardour2/trunk@1084 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
150fcb2b70
commit
f4d1fa1d9e
2 changed files with 10 additions and 1 deletions
|
|
@ -844,7 +844,11 @@ SndFileSource::crossfade (Sample* data, nframes_t cnt, int fade_in)
|
|||
nframes_t
|
||||
SndFileSource::last_capture_start_frame () const
|
||||
{
|
||||
return capture_start_frame;
|
||||
if (destructive()) {
|
||||
return capture_start_frame;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -448,6 +448,7 @@ ARDOUR::string_to_auto_style (std::string str)
|
|||
|
||||
fatal << string_compose (_("programming error: %1 %2"), "illegal AutoStyle string: ", str) << endmsg;
|
||||
/*NOTREACHED*/
|
||||
return Trim;
|
||||
}
|
||||
|
||||
string
|
||||
|
|
@ -463,6 +464,10 @@ ARDOUR::auto_style_to_string (AutoStyle as)
|
|||
return X_("Trim");
|
||||
break;
|
||||
}
|
||||
|
||||
fatal << string_compose (_("programming error: %1 %2"), "illegal AutoStyle type: ", as) << endmsg;
|
||||
/*NOTREACHED*/
|
||||
return "";
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue