From 9d33223c924914b0e791c3e2faf1c40ab6bf4aa0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 2 Apr 2004 21:32:25 +0000 Subject: [PATCH] StartDecodeThread --- stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp | 2 ++ stepmania/src/arch/Sound/RageSoundDriver_CA.cpp | 2 ++ stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp | 2 ++ stepmania/src/arch/Sound/RageSoundDriver_WaveOut.cpp | 2 ++ 4 files changed, 8 insertions(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp index a6218004fc..5bcec60959 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp @@ -116,6 +116,8 @@ try { pcm->SetSampleRate( samplerate ); LOG->Info( "ALSA: Software mixing at %ihz", samplerate ); + StartDecodeThread(); + MixingThread.SetName( "RageSound_ALSA9_Software" ); MixingThread.Create( MixerThread_start, this ); } catch(...) { diff --git a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp index f3535f4436..81e3c041b7 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_CA.cpp @@ -110,6 +110,8 @@ RageSound_CA::RageSound_CA() const Desc& physicalFormat = FindClosestFormat( physicalFormats ); stream.SetCurrentPhysicalFormat( physicalFormat ); + StartDecodeThread(); + gConverter = new AudioConverter( this, procFormat ); try diff --git a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp index 6181663f4e..3261004664 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp @@ -94,6 +94,8 @@ RageSound_DSound_Software::RageSound_DSound_Software() pcm->release_output_buf(locked_buf, len); } + StartDecodeThread(); + /* Start playing. */ pcm->Play(); diff --git a/stepmania/src/arch/Sound/RageSoundDriver_WaveOut.cpp b/stepmania/src/arch/Sound/RageSoundDriver_WaveOut.cpp index 2948422874..830cee1e20 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_WaveOut.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_WaveOut.cpp @@ -135,6 +135,8 @@ RageSound_WaveOut::RageSound_WaveOut() buffers[b].dwFlags |= WHDR_DONE; } + StartDecodeThread(); + MixingThread.SetName("Mixer thread"); MixingThread.Create( MixerThread_start, this ); }