[MPlayer-users] Possibilitiy to specify alsa output "default:CARD=Headset"
Philipp Kolmann
philipp at kolmann.at
Thu Aug 16 16:27:09 CEST 2007
On Thu, Aug 16, 2007 at 10:43:21AM +0200, Philipp Kolmann wrote:
> Hi,
>
> I have sent following mail to the list 2 weeks ago with no response at all:
>
> On Thu, Aug 02, 2007 at 09:29:25AM +0200, Philipp Kolmann wrote:
> > Hi,
> >
> > sorry to bother. 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 "="?
>
> I think a patch for this problem would be a very short work, but I would like
> to coordinate with you, which letter you would like to use.
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!
More information about the MPlayer-users
mailing list