OVH Cloud OVH Cloud

echo

2 réponses
Avatar
eric math
Bonjour

Pour avoir du son dans doom 3, je dois, entre autres choses, taper la
commande suivante avant de lancer le jeu :
echo "doom.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss

Quelqu'un saurait-il me dire à quoi sert cette commande, ce qu'elle fait
et comment éviter de la taper après chaque redémarrage ?


Merci d'avance

eric


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

2 réponses

Avatar
Glennie Vignarajah
--nextPart2449434.277ohT985I
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Le Wednesday 29 June 2005 17:50, eric math(eric math
) disait:
Bonjour


Salut,

echo "doom.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
Quelqu'un saurait-il me dire à quoi sert cette commande, ce
qu'elle fait



<Extrait
de /usr/src/linux/Documentation/sound/alsa/OSS-Emulation.txt>

PCM Mode
========

As default, ALSA emulates the OSS PCM with so-called plugin layer,
i.e. tries to convert the sample format, rate or channels
automatically when the card doesn't support it natively.
This will lead to some problems for some applications like quake or
wine, especially if they use the card only in the MMAP mode.

In such a case, you can change the behavior of PCM per application by
writing a command to the proc file. There is a proc file for each
PCM
stream, /proc/asound/cardX/pcmY[cp]/oss, where X is the card number
(zero-based), Y the PCM device number (zero-based), and 'p' is for
playback and 'c' for capture, respectively. Note that this proc file
exists only after snd-pcm-oss module is loaded.

The command sequence has the following syntax:

app_name fragments fragment_size [options]

app_name is the name of application with (higher priority) or without
path.
fragments specifies the number of fragments or zero if no specific
number is given.
fragment_size is the size of fragment in bytes or zero if not given.
options is the optional parameters. The following options are
available:

disable the application tries to open a pcm device
for
this channel but does not want to use it.
direct don't use plugins
block force block open mode
non-block force non-block open mode
partial-frag write also partial fragments (affects
playback only)
no-silence do not fill silence ahead to avoid clicks

The disable option is useful when one stream direction (playback or
capture) is not handled correctly by the application although the
hardware itself does support both directions.
The direct option is used, as mentioned above, to bypass the
automatic
conversion and useful for MMAP-applications.

</Extrait
de /usr/src/linux/Documentation/sound/alsa/OSS-Emulation.txt>

comment éviter de la taper après chaque
redémarrage ?



Ajouter 'asound.card0.pcm0p.oss=doom.x86 0 0 direct'
dans /etc/sysctl.conf (je suis pas sûr de la syntaxe).
Voir man sysctl.conf plus d'infos !
A+
--
Glennie
"L'ambition est le dernier refuge de l'échec"

--nextPart2449434.277ohT985I
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iQEVAwUAQsLP3dHiioqkksXaAQJLBQf/euzGMhrmUUkpybNhDJA5uG0h9HHBtghy
0Fvq75RcSQ50EVgs1zRa+zKB/oDt+ZAzOaJ1n5/4A/+iYK6UQztcoKBTwHhCAgAY
4KZGtjUObLEE18sTAadXjPl2xmVVVmrhMoXncY3A1RYDPvpJoj/Gx8Ot8AlBa2f3
n+X39gj3I6vZc+S5DfRXV4fWHUfhkRpVqNzz/KAjxhisEDjwHvHK7m2fyI8JCZ12
dWnwxg1PXZOy5fwvG97EeWZCFCqjMZkzjizLJ21PhvXkHKu5srx33gzPU/N0Peq/
N3C/67lXHWEBfZihQKfK3L4hrCMz5w1J24MOluzwbMqtnqjt4LXgSw= =Y+7a
-----END PGP SIGNATURE-----

--nextPart2449434.277ohT985I--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
eric math
Glennie Vignarajah a écrit :

<Extrait
de /usr/src/linux/Documentation/sound/alsa/OSS-Emulation.txt>

PCM Mode
======= >
As default, ALSA emulates the OSS PCM with so-called plugin layer,
i.e. tries to convert the sample format, rate or channels
automatically when the card doesn't support it natively.
This will lead to some problems for some applications like quake or
wine, especially if they use the card only in the MMAP mode.

In such a case, you can change the behavior of PCM per application by
writing a command to the proc file. There is a proc file for each
PCM
stream, /proc/asound/cardX/pcmY[cp]/oss, where X is the card number
(zero-based), Y the PCM device number (zero-based), and 'p' is for
playback and 'c' for capture, respectively. Note that this proc file
exists only after snd-pcm-oss module is loaded.

The command sequence has the following syntax:

app_name fragments fragment_size [options]

app_name is the name of application with (higher priority) or without
path.
fragments specifies the number of fragments or zero if no specific
number is given.
fragment_size is the size of fragment in bytes or zero if not given.
options is the optional parameters. The following options are
available:

disable the application tries to open a pcm device
for
this channel but does not want to use it.
direct don't use plugins
block force block open mode
non-block force non-block open mode
partial-frag write also partial fragments (affects
playback only)
no-silence do not fill silence ahead to avoid clicks

The disable option is useful when one stream direction (playback or
capture) is not handled correctly by the application although the
hardware itself does support both directions.
The direct option is used, as mentioned above, to bypass the
automatic
conversion and useful for MMAP-applications.

</Extrait
de /usr/src/linux/Documentation/sound/alsa/OSS-Emulation.txt>

comment éviter de la taper après chaque
redémarrage ?




Ajouter 'asound.card0.pcm0p.oss=doom.x86 0 0 direct'
dans /etc/sysctl.conf (je suis pas sûr de la syntaxe).
Voir man sysctl.conf plus d'infos !
A+



Heuhhh... je me vanterai si je disais que j'ai absolument tout compris
mais en tout cas merci beaucoup !

eric


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact