22 lines
458 B
C++
22 lines
458 B
C++
#include "../include/File.h"
|
|
#include "../include/miniaudio.h"
|
|
|
|
#include <filesystem>
|
|
#include <vector>
|
|
|
|
namespace fs = std::filesystem;
|
|
|
|
void File::importFolder( std::string folderPath ) {
|
|
|
|
for ( const auto& audioFile : fs::directory_iterator{ folderPath }) {
|
|
filenames_.reserve( 20 );
|
|
filenames_.push_back( audioFile.path() );
|
|
}
|
|
}
|
|
|
|
void File::importFile( std::string fileName ) {
|
|
fileName_ = fileName;
|
|
fs::path fp = fp_;
|
|
|
|
}
|