[OpenAL]Linux Play back Lag Issue
steve
steve at astrocorp.com.tw
Mon Apr 30 00:35:38 PDT 2007
Thank you, Jason.
You are right. I didn't use double buffering for wav file.
alutLoadWAVFile (szFile, &m_eFormat, &data, &size, &freq, &loop);
PCMData (m_id[0], m_eFormat, data, size, freq);
Alut only provides load whole wav file.
Is partially loading wav file possible?
I couldn't find AL_SYNC in OpenAL programming glide or manual.
Could you show me the source?
steve
steve wrote:
> Hi:
> I have another problem on Linux. When my game loads a mesh and plays
sound.
> It sounds jerkily. I wonder if Openal creates another thread to play sound
?
> Does openal play sound smoothly when the application is busy on Linux? My
> game doesn't have this problem on XP.
>
Unless you specifically create the context with AL_SYNC, there will be a
thread spawned to handle the mixing. I use OpenAL all the time under
Linux and don't have this problem.
Are you using buffer queues, or just a single buffer? If you're
queueing buffers, it's up to your application to make sure the source
always has at least one buffer queued to keep the sound from skipping.
--"J"
More information about the Openal
mailing list