Re: [Freevo-users] audio control (5.1 analog)
Georg Künzel wrote: Do you now these situations when you'd like to rescind something, like a posting ? So, after adding MAJOR_AUDIO_CTRLS it showed me that amixer could not handle my oss-driven SB Live 5.1 digital. I replaced the amixer-call with aumix and changed MAJOR_AUDIO_CTRLS to ['-v','-o',''] so Volume and OGaine could be handled. Two last questions to the list: 1. aumix doesn't seem to offer unmute when running with command line options. Right ? 2. Center/Subwoofer-Speaker (digital-out connector) doesn't seem to be controlable with aumix. Right ? Maybe anybody knows another command line mixer with these capabilities ? Georg 2: Thats why i decided to use alsa. I never searched for another command line mixer that solves that problem. I think OSS isnt able to control these mixer sliders at all. Maybe you should give alsa a try. Mike --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] audio control (5.1 analog)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do you now these situations when you'd like to rescind something, like a posting ? So, after adding MAJOR_AUDIO_CTRLS it showed me that amixer could not handle my oss-driven SB Live 5.1 digital. I replaced the amixer-call with aumix and changed MAJOR_AUDIO_CTRLS to ['-v','-o',''] so Volume and OGaine could be handled. Two last questions to the list: 1. aumix doesn't seem to offer unmute when running with command line options. Right ? 2. Center/Subwoofer-Speaker (digital-out connector) doesn't seem to be controlable with aumix. Right ? Maybe anybody knows another command line mixer with these capabilities ? Georg - -- Mein oeffentlicher Schluessel fuer PGP/GPG - Verschluesselung: pub 1024D/63EB55CA 2002-11-27 Georg Kuenzel <[EMAIL PROTECTED]> Key fingerprint = 8DA9 55C6 91FA D92D 89C3 7C22 0A1D 790C 63EB 55CA -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAhaSICh15DGPrVcoRAqJuAJ9IupK3O3d+MK7sxB5uYKpnFk+WfACfaKQd wPCCJHGCBfqj+9Gnwvl02RY= =SmlM -END PGP SIGNATURE- --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click ___ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] audio control (5.1 analog)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for your reply and the plugin. Unfortunately it failed while loading: Traceback (most recent call last): File "/home/georg/freevo/src/plugin.py", line 603, in __load_plugin__ p = eval(object)() File "/home/georg/freevo/src/plugins/alsa_mixer.py", line 81, in __init__ self.setMainVolume(config.DEFAULT_VOLUME) File "/home/georg/freevo/src/plugins/alsa_mixer.py", line 188, in setMainVolume self._setVolumeAlsa(self.mainVolume) File "/home/georg/freevo/src/plugins/alsa_mixer.py", line 152, in _setVolumeAlsa for slider in config.MAJOR_AUDIO_CTRLS: AttributeError: 'module' object has no attribute 'MAJOR_AUDIO_CTRLS' Is this plugin for alsa only ? I'm using the emu10k1 module. Can I help with some more detailed debug info ? Georg - -- Mein oeffentlicher Schluessel fuer PGP/GPG - Verschluesselung: pub 1024D/63EB55CA 2002-11-27 Georg Kuenzel <[EMAIL PROTECTED]> Key fingerprint = 8DA9 55C6 91FA D92D 89C3 7C22 0A1D 790C 63EB 55CA -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAhX/fCh15DGPrVcoRAs+eAJ43r0z6DkW/ZTTyeZ1s6Zpe/6Z37wCbBpEi VDd5lvx8Q8jydCe2+4sne2g= =303A -END PGP SIGNATURE- --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click ___ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] audio control (5.1 analog)
Georg Künzel wrote: I have a SB 5.1 digital card and using the analog output for 6 speakers. Problem: it is not a 5.1 speaker system with its own remote control. Rear is connected to a hifi-system, front to an active stereo speaker-set, front is the tv itself and subwoofer an active subwoofer. How to control all these speakers at once ? I would like to use my happauge remote or my keyboard, but freevo allows only control over one audio ctrl. Any ideas to control IGaine, Digital, OGaine and Volume at once ? This is a small mixer plugin for freevo. the idea was to control more than one mixer slider at a time and control sliders that are not present in the ossmixer like IEC958 (digital output). You can simply put the script in src/plugins and activate it with: plugin.activate('alsa_mixer'). Be sure to remove the old one with: plugin.remove('mixer'). You then need a config line like this: MAJOR_AUDIO_CTRLS = ['Master','Surround','IEC958'] some problems: - the volume in/decreases not so fast than in the original mixer - in digital audio control in/decreasing isnt supported so it only can mute the channel Good luck. Mike #if 0 /* # --- # Freevo - A Home Theater PC framework # Copyright (C) 2002 Krister Lagerstrom, et al. # Please see the file freevo/Docs/CREDITS for a complete list of authors. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MER- # CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # --- */ #endif """Simple ALSA mixer """ import fcntl import struct import os import popen2 import config import rc import plugin from event import * class PluginInterface(plugin.DaemonPlugin): # These magic numbers were determined by writing a C-program using the # macros in /usr/include/linux/... and printing the values. # They seem to work on my machine. XXX Is there a real python interface? SOUND_MIXER_WRITE_VOLUME = 0xc0044d00 SOUND_MIXER_WRITE_PCM = 0xc0044d04 SOUND_MIXER_WRITE_LINE = 0xc0044d06 SOUND_MIXER_WRITE_MIC = 0xc0044d07 SOUND_MIXER_WRITE_RECSRC = 0xc0044dff SOUND_MIXER_LINE = 7 SOUND_MASK_LINE = 64 def __init__(self): plugin.DaemonPlugin.__init__(self) self.plugin_name = 'MIXER' self.mixfd = None self.muted = 0 # If you're using ALSA or something and you don't set the mixer, why are # we trying to open it? if config.DEV_MIXER: try: self.mixfd = open(config.DEV_MIXER, 'r') except IOError: print 'Couldn\'t open mixer %s' % config.DEV_MIXER return if 0: self.mainVolume = 0 self.pcmVolume= 0 self.lineinVolume = 0 self.micVolume= 0 self.igainVolume = 0 # XXX Used on SB Live self.ogainVolume = 0 # XXX Ditto if self.mixfd: data = struct.pack( 'L', self.SOUND_MASK_LINE ) try: fcntl.ioctl( self.mixfd.fileno(), self.SOUND_MIXER_WRITE_RECSRC, data ) except IOError: _debug_('IOError for ioctl') pass if config.MAJOR_AUDIO_CTRL == 'VOL': self.setMainVolume(config.DEFAULT_VOLUME) if config.CONTROL_ALL_AUDIO: self.setPcmVolume(config.MAX_VOLUME) # XXX This is for SB Live cards should do nothing to others # XXX Please tell if you have problems with this. self.setOgainVolume(config.MAX_VOLUME) elif config.MAJOR_AUDIO_CTRL == 'PCM': self.setPcmVolume(config.DEFAULT_VOLUME) if config.CONTROL_ALL_AUDIO: self.setMainVolume(config.MAX_VOLUME) # XXX This is for SB Live cards should do nothing to others # XXX Please tell if you have problems with this. self.setOgainVolume(config.MAX_VOLUME) else: _debug_("No appropriate audio channel found for mixer") if config.CONTROL_ALL_AUDIO: self.setLineinVolume(0) self.setMicVolume(0) def eventhandler(self, event = None, menuw=None, arg=None): """ eventhandler to handle the VOL event
[Freevo-users] audio control (5.1 analog)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a SB 5.1 digital card and using the analog output for 6 speakers. Problem: it is not a 5.1 speaker system with its own remote control. Rear is connected to a hifi-system, front to an active stereo speaker-set, front is the tv itself and subwoofer an active subwoofer. How to control all these speakers at once ? I would like to use my happauge remote or my keyboard, but freevo allows only control over one audio ctrl. Any ideas to control IGaine, Digital, OGaine and Volume at once ? Thanx for your help ! Georg -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAgvn5Ch15DGPrVcoRAsr0AJ9T69Q5Mcivw2cjXov5+DyxShsOsQCfbGLm thw0+xMB9qYIDgdtoaIOSLI= =WUSy -END PGP SIGNATURE- --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users