Unnecessary includes
This commit is contained in:
parent
6132fbd444
commit
15d28c46ed
2 changed files with 2 additions and 9 deletions
|
|
@ -2,15 +2,9 @@
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "absl/types/span.h"
|
#include "absl/types/span.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <fstream>
|
|
||||||
#include <memory>
|
|
||||||
#include <sndfile.hh>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
|
template <class T>
|
||||||
template<class T>
|
|
||||||
void readFromFile(SndfileHandle& sndFile, int numFrames, StereoBuffer<T>& output)
|
void readFromFile(SndfileHandle& sndFile, int numFrames, StereoBuffer<T>& output)
|
||||||
{
|
{
|
||||||
if (sndFile.channels() == 1) {
|
if (sndFile.channels() == 1) {
|
||||||
|
|
@ -33,7 +27,7 @@ std::optional<sfz::FilePool::FileInformation> sfz::FilePool::getFileInformation(
|
||||||
|
|
||||||
SndfileHandle sndFile(reinterpret_cast<const char*>(file.c_str()));
|
SndfileHandle sndFile(reinterpret_cast<const char*>(file.c_str()));
|
||||||
if (sndFile.channels() != 1 && sndFile.channels() != 2) {
|
if (sndFile.channels() != 1 && sndFile.channels() != 2) {
|
||||||
DBG("Missing logic for " << sndFile.channels() <<", discarding sample " << filename);
|
DBG("Missing logic for " << sndFile.channels() << ", discarding sample " << filename);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
FileInformation returnedValue;
|
FileInformation returnedValue;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
#include "readerwriterqueue.h"
|
#include "readerwriterqueue.h"
|
||||||
#include <absl/container/flat_hash_map.h>
|
#include <absl/container/flat_hash_map.h>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <map>
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <sndfile.hh>
|
#include <sndfile.hh>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue