remove old hacks
This commit is contained in:
@@ -25,11 +25,6 @@ int RageSound_ALSA9::MixerThread_start(void *p)
|
||||
|
||||
void RageSound_ALSA9::MixerThread()
|
||||
{
|
||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||
* assigns it; we might get here before that happens, though. */
|
||||
while( !SOUNDMAN && !shutdown )
|
||||
usleep( 10000 );
|
||||
|
||||
while(!shutdown)
|
||||
{
|
||||
/* Sleep for the size of one chunk. */
|
||||
|
||||
@@ -35,11 +35,6 @@ int RageSound_ALSA9_Software::MixerThread_start(void *p)
|
||||
|
||||
void RageSound_ALSA9_Software::MixerThread()
|
||||
{
|
||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||
* assigns it; we might get here before that happens, though. */
|
||||
while( !SOUNDMAN && !shutdown )
|
||||
usleep( 10000 );
|
||||
|
||||
setpriority( PRIO_PROCESS, 0, -15 );
|
||||
|
||||
while(!shutdown)
|
||||
|
||||
@@ -35,11 +35,7 @@ int RageSound_DSound::MixerThread_start(void *p)
|
||||
|
||||
void RageSound_DSound::MixerThread()
|
||||
{
|
||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||
* assigns it; we might get here before that happens, though. */
|
||||
while(!SOUNDMAN && !shutdown) Sleep(10);
|
||||
|
||||
if(!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL))
|
||||
if( !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL) )
|
||||
LOG->Warn(werr_ssprintf(GetLastError(), "Failed to set sound thread priority"));
|
||||
|
||||
while( !shutdown )
|
||||
|
||||
@@ -21,11 +21,6 @@ static int chunksize() { return max_writeahead / num_chunks; }
|
||||
|
||||
void RageSound_DSound_Software::MixerThread()
|
||||
{
|
||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||
* assigns it; we might get here before that happens, though. */
|
||||
while( !SOUNDMAN && !shutdown_mixer_thread )
|
||||
usleep( 10000 );
|
||||
|
||||
if( !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL) )
|
||||
if( !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL) )
|
||||
LOG->Warn(werr_ssprintf(GetLastError(), "Failed to set sound thread priority"));
|
||||
|
||||
@@ -30,11 +30,6 @@ int RageSound_OSS::MixerThread_start(void *p)
|
||||
|
||||
void RageSound_OSS::MixerThread()
|
||||
{
|
||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||
* assigns it; we might get here before that happens, though. */
|
||||
while( !SOUNDMAN && !shutdown )
|
||||
usleep( 10000 );
|
||||
|
||||
/* We want to set a higher priority, but Unix only lets root renice
|
||||
* < 0, which is silly. Give it a try, anyway. */
|
||||
nice( -10 );
|
||||
|
||||
@@ -40,10 +40,6 @@ int RageSound_WaveOut::MixerThread_start(void *p)
|
||||
|
||||
void RageSound_WaveOut::MixerThread()
|
||||
{
|
||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||
* assigns it; we might get here before that happens, though. */
|
||||
while(!SOUNDMAN && !shutdown) Sleep(10);
|
||||
|
||||
if( !SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL) )
|
||||
LOG->Warn( werr_ssprintf(GetLastError(), "Failed to set sound thread priority") );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user