fix busy looping in the null sound driver
This commit is contained in:
@@ -30,8 +30,8 @@ void RageSound_Null::MixerThread()
|
|||||||
RageTimer Speaker;
|
RageTimer Speaker;
|
||||||
|
|
||||||
while(!shutdown) {
|
while(!shutdown) {
|
||||||
float delay_ms = float(buffersize_frames) / samplerate;
|
const int delay_ms = 1000 * buffersize_frames / samplerate;
|
||||||
SDL_Delay(int(delay_ms / 2));
|
SDL_Delay(delay_ms / 2);
|
||||||
|
|
||||||
LockMutex L(SOUNDMAN->lock);
|
LockMutex L(SOUNDMAN->lock);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user