13
0

Remove unused API, reduce sndfile/coreaudio specialization

This commit is contained in:
Robin Gareus 2019-12-07 11:32:07 +01:00
parent e0f7514e82
commit 78337c9a7e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 0 additions and 35 deletions

View File

@ -77,10 +77,6 @@ class LIBARDOUR_API AudioRegion : public Region
boost::shared_ptr<AudioSource> audio_source (uint32_t n=0) const;
// if several audio files associated with a region,
// information about file with MAX channel count will be provided
uint32_t get_related_audio_file_channel_count () const;
void set_scale_amplitude (gain_t);
gain_t scale_amplitude() const { return _scale_amplitude; }

View File

@ -56,9 +56,6 @@
#include "ardour/progress.h"
#include "ardour/sndfilesource.h"
#ifdef HAVE_COREAUDIO
#include "ardour/coreaudiosource.h"
#endif // HAVE_COREAUDIO
#include "pbd/i18n.h"
#include <locale.h>
@ -1604,34 +1601,6 @@ AudioRegion::audio_source (uint32_t n) const
return boost::dynamic_pointer_cast<AudioSource>(source(n));
}
uint32_t
AudioRegion::get_related_audio_file_channel_count () const
{
uint32_t chan_count = 0;
for (SourceList::const_iterator i = _sources.begin(); i != _sources.end(); ++i) {
boost::shared_ptr<SndFileSource> sndf = boost::dynamic_pointer_cast<SndFileSource>(*i);
if (sndf ) {
if (sndf->channel_count() > chan_count) {
chan_count = sndf->channel_count();
}
}
#ifdef HAVE_COREAUDIO
else {
boost::shared_ptr<CoreAudioSource> cauf = boost::dynamic_pointer_cast<CoreAudioSource>(*i);
if (cauf) {
if (cauf->channel_count() > chan_count) {
chan_count = cauf->channel_count();
}
}
}
#endif // HAVE_COREAUDIO
}
return chan_count;
}
void
AudioRegion::clear_transients () // yet unused
{