Revision 9cb381ec server/src/AudioPlayerRSB.cpp

View differences:

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

Also available in: Unified diff