summaryrefslogtreecommitdiff
path: root/sound_detector/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-22 02:32:26 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-22 02:32:26 +0200
commitf3d24db5c73b9874815e0b7878d86eabb7b31d1b (patch)
tree5429643bdccdce61478ae52ba960fca90e6c1d74 /sound_detector/main.cpp
parentf820ddde2699c8f0cab75dbebc511e43702ca5d2 (diff)
windows workaround
Diffstat (limited to 'sound_detector/main.cpp')
-rw-r--r--sound_detector/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound_detector/main.cpp b/sound_detector/main.cpp
index 0c4b489..464f5e5 100644
--- a/sound_detector/main.cpp
+++ b/sound_detector/main.cpp
@@ -122,7 +122,11 @@ void encode_end(vorbis_params &vparams)
std::string time_str()
{
boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
+#ifndef WIN32
return boost::posix_time::to_simple_string(now);
+#else
+ return boost::posix_time::to_iso_string(now);
+#endif
}
char out_dir[1024] = {0};
@@ -261,6 +265,7 @@ double get_lowest_rate(const PaStreamParameters *inputParameters)
int main(int argc, char **argv)
{
+ std::string str = time_str();
PaError err = Pa_Initialize();
if(err != paNoError)
{