StartDecodeThread

This commit is contained in:
Glenn Maynard
2004-04-02 21:32:25 +00:00
parent 1060269709
commit 9d33223c92
4 changed files with 8 additions and 0 deletions
@@ -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(...) {
@@ -110,6 +110,8 @@ RageSound_CA::RageSound_CA()
const Desc& physicalFormat = FindClosestFormat( physicalFormats );
stream.SetCurrentPhysicalFormat( physicalFormat );
StartDecodeThread();
gConverter = new AudioConverter( this, procFormat );
try
@@ -94,6 +94,8 @@ RageSound_DSound_Software::RageSound_DSound_Software()
pcm->release_output_buf(locked_buf, len);
}
StartDecodeThread();
/* Start playing. */
pcm->Play();
@@ -135,6 +135,8 @@ RageSound_WaveOut::RageSound_WaveOut()
buffers[b].dwFlags |= WHDR_DONE;
}
StartDecodeThread();
MixingThread.SetName("Mixer thread");
MixingThread.Create( MixerThread_start, this );
}