-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
I'm not sure if it's better to post to the SF Bugtracker, or straight to
the list, so I'm sending it here first.


I've had to update the radioplayer.py code to accomodate alternative
radio players other than the one supplied by xawtv, since xawtv is no
longer packaged for Fedora Core 5. I'm currently using fmtools which is
probably the closest in terms of syntax to the xawtv radio cmd.

Enclosed is the patch I'm using, but it should be generalized to accept
a RADIO_CMD which is specified in local_config.py.


In freevo_config.py / local_config.py:

RADIO_CMD = 'fm'
RADIO_CMD_START = ('%s -q %s 65535' % (RADIO_CMD, %(station)))
RADIO_CMD_STOP = ('%s -q off' % RADIO_CMD)

In radioplayer.py:

(I'm not familiar with python to fix this properly, so the following
probably isn't valid python syntax)

- --- freevo-1.5.4/src/audio/plugins/radioplayer.py.orig  2006-09-07
08:31:26.000000000 +0800
+++ freevo-1.5.4/src/audio/plugins/radioplayer.py       2006-09-07
08:31:26.000000000 +0800
@@ -111,7 +111,7 @@
             mixer.setMicVolume(config.TV_IN_VOLUME)
         else:
             print 'Radio Player failed to find a mixer'
- -        os.system('%s -qf %s' % (config.RADIO_CMD, self.item.station))
+        os.system('%s' % (config.RADIO_CMD_START, self.item.station))
         thread.start_new_thread(self.__update_thread, ())
         return None

@@ -129,7 +129,7 @@
             mixer.setMicVolume(0)
         else:
             print 'Radio Player failed to find a mixer'
- -        os.system('%s -qm' % config.RADIO_CMD)
+        os.system('%s' % config.RADIO_CMD_STOP)


- --
Wan Tat Chee (Senior Lecturer)
School of Computer Sciences, Univ. of Science Malaysia,
11800 USM, Penang, Malaysia.             Rm.625 Ofc Ph: +604 653-3617
NRG Lab Admin: +604 659-4757           Rm.601-F Ofc Ph: +604 653-4396
Internet: [EMAIL PROTECTED]            Web: http://nrg.cs.usm.my/~tcwan
GPG Key : http://nrg.cs.usm.my/~tcwan/tcwan-usm-20060710.asc
F'print : 4DD0 0363 DB9E E08C 9F18  4BBC EC18 4BE2 7699 8CF2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFLMTF7BhL4naZjPIRAl6hAJ9NQbn8+lhBU1cthxDVTqcNsVk/eQCgmTKb
6S2gPnPnvlI5oVbq7UAmJnk=
=pkHL
-----END PGP SIGNATURE-----
--- freevo-1.5.4/src/audio/plugins/radioplayer.py.orig	2006-09-07 08:31:26.000000000 +0800
+++ freevo-1.5.4/src/audio/plugins/radioplayer.py	2006-09-07 08:31:26.000000000 +0800
@@ -111,7 +111,7 @@
             mixer.setMicVolume(config.TV_IN_VOLUME)
         else:
             print 'Radio Player failed to find a mixer'
-        os.system('%s -qf %s' % (config.RADIO_CMD, self.item.station))
+        os.system('%s -q %s 65535' % (config.RADIO_CMD, self.item.station))
         thread.start_new_thread(self.__update_thread, ())
         return None
     
@@ -129,7 +129,7 @@
             mixer.setMicVolume(0)
         else:
             print 'Radio Player failed to find a mixer'
-        os.system('%s -qm' % config.RADIO_CMD)
+        os.system('%s -q off' % config.RADIO_CMD)
 
 
     def is_playing(self):
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to