Commit 7958a41c authored by artificiel's avatar artificiel
Browse files

CloudPlayerThread: misc tweaks et messages logs

parent 0af49e3d
......@@ -36,10 +36,11 @@ class CloudPlayerThread : public ofThread
is_setup_ = true;
total_frames_ = dir.listDir();
decoded_frames_ = 0;
std::cout << "CLOUDPLAYER: playing " << total_frames_ << " frames from " << playback_path_ << std::endl;
ofLogNotice("CloudPlayerThread") << "playing " << total_frames_ << " frames from " << playback_path_;
} else {
std::cout << "ERROR:: CLOUDPLAYER:: no such directory" << playback_path_ << std::endl;
ofLogError("CloudPlayerThread") << "no such directory: " << playback_path_;
}
return is_setup_;
}
......@@ -100,13 +101,12 @@ class CloudPlayerThread : public ofThread
private:
void threadedFunction()
{
std::cout << "CLOUD PLAYER: thread started" << std::endl;
ofLogNotice("CloudPlayerThread") << "thread started";
while (1) {
if (stop_thread_) {
stop_thread_ = false;
std::cout << "CLOUD PLAYER: thread stopped" << std::endl;
ofLogNotice("CloudPlayerThread") << "thread stopped";
return;
}
......@@ -127,7 +127,7 @@ class CloudPlayerThread : public ofThread
cloudfile.open(filename_to_decode, ios::in | ios::binary);
if (!cloudfile) {
std::cout << "DECODEUR: file " << filename_to_decode << " not found; looping" << std::endl;
ofLogNotice("CloudPlayerThread") << filename_to_decode << " not found; looping";
decoded_frames_ = 0;
} else {
......@@ -153,7 +153,8 @@ class CloudPlayerThread : public ofThread
previousCloudTimestamp = status_ms;
decodingFenceTimestamp = now + delay;
// std::cout << "read cloud #" << decoded_frames_ << " with " << cloud->size() << " points from " << filename_to_decode << " with interval: " << delay << std::endl;
//ofLogNotice("CloudPlayerThread") << decoded_frames_ << " with " << cloud->size() << " points from " << filename_to_decode << " with interval: " << delay;
data_available_ = true;
ofMesh mesh;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment