[MPlayer-dev-eng] Possibilitiy to specify alsa output "default:CARD=Headset"]

Philipp Kolmann philipp at kolmann.at
Tue Aug 21 09:31:05 CEST 2007


Hi,

Currently when I want to have mplayer ao to my Headset I set in the
.mplayer/config file:

ao=alsa:device=hw=1.0

That works, but blocks the port. I also tried it with noblock, with no
better result.

Now I wanted to try to get mplayer to play to the default (with dmix) port
of my headset, which works, if I set the device to:

default:CARD=Headset

Problem is, that I have to substitute the ":" to "=" in the config to
work. In libao2/ao_alsa.c 238++ the "="'s are set to ":". But also the
second "=". So alsalib doesn't recognize the device.

Is there a possibility to have another subst char for "="?

How about the following:

Index: libao2/ao_alsa.c
===================================================================
--- libao2/ao_alsa.c    (revision 24079)
+++ libao2/ao_alsa.c    (working copy)
@@ -244,6 +244,8 @@
     tmp[0] = ',';
   while ((tmp = strrchr(dest, '=')))
     tmp[0] = ':';
+  while ((tmp = strrchr(dest, '+')))
+    tmp[0] = '=';
 }
 
 static void print_help (void)

Works for me.

thanks
Philipp


-- 
The more I learn about people, the more I like my dog!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070821/15b10446/attachment.pgp>


More information about the MPlayer-dev-eng mailing list