From 8b44152d4da7911745dfc34a4c85824694701398 Mon Sep 17 00:00:00 2001 From: Dimitri Diakopoulos Date: Sat, 31 Oct 2015 09:24:59 -0700 Subject: [PATCH] surpress debug messages --- .../xcshareddata/xcschemes/libnyquist.xcscheme | 2 +- src/Common.cpp | 2 -- src/WavDecoder.cpp | 8 ++++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme b/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme index 9512d62..438e1db 100644 --- a/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme +++ b/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme @@ -45,7 +45,7 @@ launchStyle = "0" useCustomWorkingDirectory = "YES" customWorkingDirectory = "$(PROJECT_DIR)" - buildConfiguration = "Release" + buildConfiguration = "Debug" ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" allowLocationSimulation = "YES"> diff --git a/src/Common.cpp b/src/Common.cpp index b087981..3748add 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -29,8 +29,6 @@ using namespace nqr; NyquistFileBuffer nqr::ReadFile(std::string pathToFile) { - std::cout << "[Debug] Open: " << pathToFile << std::endl; - FILE * audioFile = fopen(pathToFile.c_str(), "rb"); if (!audioFile) diff --git a/src/WavDecoder.cpp b/src/WavDecoder.cpp index e1c8c2b..493f6b7 100644 --- a/src/WavDecoder.cpp +++ b/src/WavDecoder.cpp @@ -98,24 +98,24 @@ int WavDecoder::LoadFromBuffer(AudioData * data, const std::vector & me data->sampleRate = wavHeader.sample_rate; data->frameSize = wavHeader.frame_size; - std::cout << wavHeader << std::endl; + //std::cout << wavHeader << std::endl; bool scanForFact = false; bool grabExtensibleData = false; if (wavHeader.format == WaveFormatCode::FORMAT_PCM) { - std::cout << "[format id] pcm" << std::endl; + //std::cout << "[format id] pcm" << std::endl; } else if (wavHeader.format == WaveFormatCode::FORMAT_IEEE) { - std::cout << "[format id] ieee" << std::endl; + //std::cout << "[format id] ieee" << std::endl; scanForFact = true; } else if (wavHeader.format == WaveFormatCode::FORMAT_EXT) { // Used when (1) PCM data has more than 16 bits; (2) channels > 2; (3) bits/sample !== container size; (4) channel/speaker mapping specified - std::cout << "[format id] extended" << std::endl; + //std::cout << "[format id] extended" << std::endl; scanForFact = true; grabExtensibleData = true; }