gitigfake sugar and spice | Salut à tous
J'essaie d'utiliser 'dmix' pour multiplexer xmms et mplayer . Mais...
Xmms lancé et jouant ,je lance mplayer Code :
- mplayer -ao alsa:device=ossmix Infernal-From_Paris_To_Berlin.mp3
- ==========================================================================
- Trying to force audio codec driver family libmad...
- Opening audio decoder: [libmad] libmad mpeg audio decoder
- AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
- Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
- ==========================================================================
- Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
- alsa-init: 1 soundcard found, using: dmix
- Et Rien :(
- [ctl-C]
- MPlayer interrupted by signal 2 in module: enable_cache
- MPlayer interrupted by signal 2 in module: ao2_init
|
Mais si j'arrete Xmms
Code :
- alsa-init: 1 soundcard found, using: ossmix
- alsa: 44100 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
- AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
- Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
- Video: no video
- Starting playback...
- Cannot sync MAD frame 328.0 (05:28.0) 4.3% 0%
- Cannot sync MAD frame
- Cannot sync MAD frame
- A: 209.3 (03:29.2) of 328.0 (05:28.0) 4.3% 0%
- alsa-uninit: pcm closed
- Exiting... (End of file)
|
Voila mon .asoundrc
Code :
- pcm.azt3328 {
- type hw
- card 0
- }
- ctl.azt3328 {
- type hw
- card 0
- }
- pcm.ossmix {
- type dmix
- ipc_key 1024 # must be unique!
- # ipc_key_add_uid false # let multiple users share
- ipc_perm 0666 # IPC permissions for multi-user sharing (octal, defa
- ult 0600)
- slave {
- pcm "hw:0,0" # you cannot use a "plug" device here, darn.
- period_time 0
- period_size 1024 # must be power of 2
- buffer_size 8192 # dito. It
- rate 44100
- #format "S32_LE"
- #periods 128 # dito.
- #rate 8000 # with rate 8000 you *will* hear,
- # if ossmix is used :)
- }
- bindings {
- 0 0 # from 0 => to 0
- 1 1 # from 1 => to 1
- }
- }
- pcm.dsp0 {
- type plug
- slave.pcm "ossmix" # use our new PCM here
- }
- # mixer0 like above
- ctl.mixer0 {
- type hw
- card 0
- }
- # You may want to make your new ossmix the default for alsa.
- # If your alsa programs are complaining that they can't open
- # your sound devices, try uncommenting this next line
- pcm.default pcm.dsp0
|
help .......
Edit suite aux essais Message édité par gitigfake le 24-04-2006 à 22:09:20 ---------------
Merci pour vos réponses ...
|