From 34a45fb089807332ae6606f9b4c4a25ffdb41040 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 13 Mar 2005 21:51:51 +0000 Subject: [PATCH] Whose bright idea was it to use SDL routines in the ALSA code? --- stepmania/src/arch/Sound/ALSA9Helpers.cpp | 3 +-- stepmania/src/arch/Sound/ALSA9Helpers.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/arch/Sound/ALSA9Helpers.cpp b/stepmania/src/arch/Sound/ALSA9Helpers.cpp index b756fcd919..ec9fb8c68a 100644 --- a/stepmania/src/arch/Sound/ALSA9Helpers.cpp +++ b/stepmania/src/arch/Sound/ALSA9Helpers.cpp @@ -2,7 +2,6 @@ #include "RageLog.h" #include "RageUtil.h" #include "ALSA9Helpers.h" -#include "SDL_utils.h" #include "ALSA9Dynamic.h" #include "PrefsManager.h" @@ -380,7 +379,7 @@ bool Alsa9Buf::Recover( int r ) LOG->Trace("RageSound_ALSA9::Recover (resume)"); int err; while ((err = dsnd_pcm_resume(pcm)) == -EAGAIN) - SDL_Delay(10); + usleep(10000); // 10ms ALSA_ASSERT("dsnd_pcm_resume (Recover)"); return true; diff --git a/stepmania/src/arch/Sound/ALSA9Helpers.h b/stepmania/src/arch/Sound/ALSA9Helpers.h index 66c6d83b96..ebb05145b4 100644 --- a/stepmania/src/arch/Sound/ALSA9Helpers.h +++ b/stepmania/src/arch/Sound/ALSA9Helpers.h @@ -5,8 +5,6 @@ #define ALSA_PCM_NEW_SW_PARAMS_API #include -#include "SDL_types.h" - class Alsa9Buf { private: