MSVC warnings/errors for the logger
This commit is contained in:
parent
fb9a3229af
commit
a52625044e
3 changed files with 4 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ sfz::Logger::~Logger()
|
|||
}
|
||||
|
||||
|
||||
void sfz::Logger::logCallbackTime(std::chrono::duration<double> duration, int numVoices, int numSamples)
|
||||
void sfz::Logger::logCallbackTime(std::chrono::duration<double> duration, int numVoices, size_t numSamples)
|
||||
{
|
||||
if (!loggingEnabled)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ struct CallbackTime
|
|||
{
|
||||
std::chrono::duration<double> duration;
|
||||
int numVoices;
|
||||
int numSamples;
|
||||
size_t numSamples;
|
||||
};
|
||||
|
||||
class Logger
|
||||
|
|
@ -57,7 +57,7 @@ public:
|
|||
void clear();
|
||||
void enableLogging();
|
||||
void disableLogging();
|
||||
void logCallbackTime(std::chrono::duration<double> duration, int numVoices, int numSamples);
|
||||
void logCallbackTime(std::chrono::duration<double> duration, int numVoices, size_t numSamples);
|
||||
void logFileTime(std::chrono::duration<double> waitDuration, std::chrono::duration<double> loadDuration, uint32_t fileSize, absl::string_view filename);
|
||||
private:
|
||||
void moveEvents();
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ bool sfz::Synth::loadSfzFile(const fs::path& file)
|
|||
return false;
|
||||
|
||||
resources.filePool.setRootDirectory(this->originalDirectory);
|
||||
resources.logger.setPrefix(file.filename());
|
||||
resources.logger.setPrefix(file.filename().string());
|
||||
|
||||
auto currentRegion = regions.begin();
|
||||
auto lastRegion = regions.rbegin();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue