Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ofxaddons
ofxCloudLib
Commits
7958a41c
Commit
7958a41c
authored
Nov 29, 2017
by
artificiel
Browse files
CloudPlayerThread: misc tweaks et messages logs
parent
0af49e3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ofxCloudLib/CloudPlayerThread.hpp
View file @
7958a41c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment