What the problem?
"GMD GammerMaxyandex.ru" <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
Hello!
Here is detailed description the difference programming sound using OpenAL in Linux OS (Windows is OK)
We have two applications, that using Open AL and OpenGL… we are using less than 120 sound sources
We have different computers with different sound cards (Realtek and Creative X-Fi)
Linux: Ubuntu 10.04 amd64, Open AL ver. 1.12.854
When the load of processor increasing up to more than 70 percent, we got a hard stammering of sound and experience rough fall of FPS. We can see that only if the position of recipient is always the same, never had been changed. If we permanently changing the position of recipient, we don`t get that bug.
I wrote the code to solve that issue in Linux OS
#ifdef WIN32
if ((oldX!=posx)||(oldY!=posy)||(oldZ!=posz))
{
ALfloat ListenerPos[] = { posx, posy, posz };
alListenerfv(AL_POSITION, ListenerPos);
CheckALError();
}
#else //this FIXed BUG in linux
{
ALfloat ListenerPos[] = { posx + (rand() % 2 + 1), posy+ (rand() % 2 + 1), posz+ (rand() % 2 + 1) };
alListenerfv(AL_POSITION, ListenerPos);
CheckALError();
}
#endif
What the problem? What`s the way out?
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal