On 14.08.2009 09:08:59, c_c wrote: > Benjamin Schieder wrote: > > > > 1. How does it detect a BT device? > > > Intone essentially relies on mplayer streaming the sound to the > default bluetooth device (mplayer -ao alsa:device=bluetooth). So you > need to set up the device as default. > I know its not too great - do you have any suggestions?
Hello.
In my little python script I did the following:
self.asoundrc = open('/etc/asound.conf', 'rb')
self.asound = self.asoundrc.readlines()
matchpcm = re.compile('pcm\.!?([a-zA-Z0-9]+) ')
for line in self.asound:
match = matchpcm.match(line)
if match:
out = gtk.MenuItem(match.group(1))
out.connect("activate", self.setoutput, match.group(1))
self.outputmenu.append(out)
This way I get a list of all pcm.* devices in /etc/asound.conf and give
those as possible output devices. In C one could probably do that
without the regex overhead using sscanf.
> 2. Is it possible to add webradio playing to Intone?
>
> I haven't really tried it. Can you tell me what such functionality
> would need? The URL, of course, - but what else? I could add that
> as another view.
For my webradio I run
mplayer -ao alsa -really-quiet http://surround.webradio.rockantenne.de/
Shoutcast and similiar software should work just as fine, as it's
basically an mp3/ogg/whatever stream over http.
Kind regards,
Benjamin
--
#!/bin/sh #!/bin/bash #!/bin/tcsh #!/bin/csh #!/bin/kiss #!/bin/ksh
#!/bin/pdksh #!/usr/bin/perl #!/usr/bin/python #!/bin/zsh #!/bin/ash
Feel at home? Got some of them? Want to show some magic?
http://shellscripts.org
#######
Bitte beachte, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert
wird.
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
http://piratenpartei.de/navigation/politik/ueberwachung/vorratsdatenspeicherung
#######
signature.asc
Description: Digital signature
_______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
