Revision 90fa4b4e server/src/AudioPlayerRSB.cpp
server/src/AudioPlayerRSB.cpp | ||
---|---|---|
128 | 128 |
int sampling_rate = audio_data_ptr->rate(); |
129 | 129 |
double playback_time = (double)sample_count / (double)sampling_rate; |
130 | 130 |
printf("> AudioPlayerRSB estimated playbacktime to %5.3lf seconds. will wait now...", playback_time); |
131 |
boost::this_thread::sleep(boost::posix_time::milliseconds(1000.0 * playback_time));
|
|
131 |
boost::this_thread::sleep(std::chrono::seconds(playback_time));
|
|
132 | 132 |
printf("> AudioPlayerRSB finished waiting...\n"); |
133 | 133 |
break; |
134 | 134 |
} |
Also available in: Unified diff