-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Morales Vega schreef:
| 2008/2/17, Christian Morales Vega :
|> The SDL API doesn't allows the developer to select the audio device.
|> It just does:
|> #define DEFAULT_DEVICE "default"
|> ...
|> static const char *get_audio_device(int channels)
|> {
|> const char *device;
|>
|> device = SDL_getenv("AUDIODEV"); /* Is there a
standard variable name? */
|> if ( device == NULL ) {
|> if (channels == 6) device = "surround51";
|> else if (channels == 4) device = "surround40";
|> else device = DEFAULT_DEVICE;
|> }
|> return device;
|> }
|>
|> I don't understand the motives (someone here does?), but setting
|> AUDIODEV to "hw" works better than "default" in some cases (sometimes
|> default works better?).
|> All the info about the problem I found is
|> http://mednafen.sourceforge.net/documentation/#using-cli , that says:
|> "This is necessary because ALSA's "default" audio device has very poor
|> buffering control capabilities."
|>
|> I just found again the problem with GuitarFun (
|> http://www.elotrolado.net/hilo_-JUEGO--Guitarfun-PC-2-0--homebrew-_948414
|> ). But I remember having the same problem in the past with other
|> software.
|>
|> So, should SDL be patched to '#define DEFAULT_DEVICE "hw"'?
|>
|
| Ok, no. "hw" isn't a good default since it disables software mixing
| and other apps loss sound.
| But we are patching SDL to try first ALSA
| (SDL-1.2.13-try_alsa_first.patch). And in my experience SDL apps work
| better with: "SDL_AUDIODRIVER=dsp aoss <app>" than with
| "SDL_AUDIODRIVER=alsa <app>".
Nice to get useable feedback, don't you think?
- --
Have a nice day,
M9. Now, is the only time that exists.
~ OS: Linux 2.6.22.17-0.1-default x86_64
~ Huidige gebruiker: monkey9@AMD64x2-sfn1
~ Systeem: openSUSE 10.3 (x86_64)
~ KDE: 3.5.7 "release 72.6"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFHuIrDX5/X5X6LpDgRAhujAJ9nvI5wuWDvFMHYCPAX5CkPmPby7wCgsh1n
x6HWVhRDO9GZ2nmgGgM2kmc=
=dMBq
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-factory+help@opensuse.org