Can't change audio_buffers. Using system.cfg

Using

[1024-8192(2048)] SDL_mixer audio buffer size
audio_buffers              1024
in system.cfg

and eternity gives
I_InitSound: Configured audio device with 2048 samples/slice.
Tried audio_buffers 512 but no change. Getting over one second sound lag.

Looked in i_sdlsound.cpp for settings but couldn't find anything.

Eternity r2886

Share this post


Link to post
Holering said:

Using

[1024-8192(2048)] SDL_mixer audio buffer size
audio_buffers              1024
in system.cfg

and eternity gives
I_InitSound: Configured audio device with 2048 samples/slice.
Tried audio_buffers 512 but no change. Getting over one second sound lag.

Looked in i_sdlsound.cpp for settings but couldn't find anything.

Eternity r2886

512 is not an allowed value, as clearly indicated in the config comment [min-max(default)].

Making the audio buffers value too small will cause the audiospec callback to be dispatched too often. This will cause disruption of audio timing. I highly suggest this value not be changed unless you are experiencing skipping audio for some reason.

1024 should be working on the other hand. Please try it again. However it will not necessarily affect any problems you are having. If the setting is still not saved, then there's a problem.

Share this post


Link to post

4096 and higher doesn't change anything. I still get :

I_InitSound: Configured audio device with 2048 samples/slice.
no matter what... Sdl-1.2.15 with hardware mixing (alsa) BTW.

EDIT:
There a command line option?

Share this post


Link to post
Holering said:

4096 and higher doesn't change anything. I still get :

I_InitSound: Configured audio device with 2048 samples/slice.
no matter what... Sdl-1.2.15 with hardware mixing (alsa) BTW.

EDIT:
There a command line option?

Are you sure you are editing the system.cfg that Eternity is actually using? The last time somebody had a similar problem it turned out that EE was seeing a different /user folder somewhere else. Pay careful attention to the location that it states it is using at startup.

Share this post


Link to post

Going to double check...

ETERNITYBASE="/home/user/.eternity/base" and my system.cfg is "/home/user/.eternity/base/system.cfg". If I don't set ETERNITYBASE then I get the usual error about BASEPATH not found. Only other copy of system.cfg might be in "/usr/share/games/doom/base" (don't know if one actually exists there)...

Thanks

EDIT:
You were right Quasar (figures). Eternity was using /home/user/.config/eternity/user/base instead of $ETERNITYBASE. I guess /home/user/.config/eternity/user/base is hard coded into Eternity now (or has been)? Thought I remember mention of that sometime ago IIRC... So I'll just make sure to only use /home/user/.config/eternity/user/base for everything.

Shouldn't ETERNITYBASE check be removed if it doesn't use what's specified? Why bother checking if it's going to use one particular path only? Am I overlooking something?

Share this post


Link to post

For the user dir to be specified through environment, you need to set ETERNITYUSER as well. This is because /user and /base can be in totally different locations.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now