forked from pyrite-dev/milsko
working mpegplayer example
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@506 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
1e11963ff4
commit
c8c03ef89b
7 changed files with 624 additions and 18 deletions
|
|
@ -412,7 +412,12 @@ void MwLLNextEvent(MwLL handle) {
|
|||
}
|
||||
|
||||
void MwLLSleep(int ms) {
|
||||
usleep(ms * 1000);
|
||||
struct timespec ts;
|
||||
|
||||
ts.tv_sec = ms / 1000;
|
||||
ts.tv_nsec = (ms % 1000) * 1000 * 1000;
|
||||
|
||||
nanosleep(&ts, NULL);
|
||||
}
|
||||
|
||||
void MwLLSetTitle(MwLL handle, const char* title) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue