Revision 498cd9cd server/src/AudioPlayer.cpp
server/src/AudioPlayer.cpp | ||
---|---|---|
27 | 27 |
*/ |
28 | 28 |
|
29 | 29 |
#include "AudioPlayer.h" |
30 |
#include <thread> |
|
31 |
#include <chrono> |
|
30 | 32 |
|
31 | 33 |
using namespace std; |
32 | 34 |
|
... | ... | |
49 | 51 |
|
50 | 52 |
while(playback_state != CLOSED){ |
51 | 53 |
printf("> waiting for end of audio playback\n"); |
52 |
usleep(1000);
|
|
54 |
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
|
53 | 55 |
} |
54 | 56 |
} |
Also available in: Unified diff