mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
[Summary] Fixed windows build
This commit is contained in:
parent
94c2ad0959
commit
3ef372fc6c
1 changed files with 5 additions and 2 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <set>
|
||||
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <glibmm/threads.h>
|
||||
|
||||
|
|
@ -50,7 +51,9 @@
|
|||
#include "ardour/progress.h"
|
||||
|
||||
#include "ardour/sndfilesource.h"
|
||||
#ifdef HAVE_COREAUDIO
|
||||
#include "ardour/coreaudiosource.h"
|
||||
#endif // HAVE_COREAUDIO
|
||||
|
||||
#include "i18n.h"
|
||||
#include <locale.h>
|
||||
|
|
@ -1571,7 +1574,7 @@ 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 = dynamic_pointer_cast<SndFileSource>(*i);
|
||||
boost::shared_ptr<SndFileSource> sndf = boost::dynamic_pointer_cast<SndFileSource>(*i);
|
||||
if (sndf ) {
|
||||
|
||||
if (sndf->channel_count() > chan_count) {
|
||||
|
|
@ -1580,7 +1583,7 @@ AudioRegion::get_related_audio_file_channel_count () const
|
|||
}
|
||||
#ifdef HAVE_COREAUDIO
|
||||
else {
|
||||
boost::shared_ptr<CoreAudioSource> cauf = dynamic_pointer_cast<CoreAudioSource>(*i);
|
||||
boost::shared_ptr<CoreAudioSource> cauf = boost::dynamic_pointer_cast<CoreAudioSource>(*i);
|
||||
if (cauf) {
|
||||
if (cauf->channel_count() > chan_count) {
|
||||
chan_count = cauf->channel_count();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue