Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: karmic pulseaudio line-in to analog-out

  1. #1
    Join Date
    Oct 2006
    Beans
    89

    karmic pulseaudio line-in to analog-out

    First I'm not being critical of pulseaudio. Just trying to get my system to do what I would like. Preferably with the tools that come with Karmic.

    I have a mixing board that I use to select various radio sources depending on what I wish to do. Ham radio in one feed, or another, shortwave, xm-radio, mic, and so on.

    There are times when I want to listen to one of those sources. I'm not really interested in recording from them at the time, or building a patch bay that I have to change every time I want to change what I'm doing.

    Under 9.04, I could right click on the volume control, select Preferences, select the Input tab, use the pull-down to select Line-In, click the checkbox to monitor, adjust the levels as needed, and I was listening to the source in question.

    I'm not running into anything quite so simple under 9.10. The volume control applet will allow me to change the volume of the default-out sink, which is fin, or mute it, also fine, or even pull up the 'preference' for it, which lets me also adjust the volume. Ok. Nice, but not what I'm looking for. So I select the PulseAudio Device Chooser from the Applications > Sound & Video menu, and it very nicely throws up another PulseAudio Device Chooser close to the Volume control in the appropriate panel. Not really quite what I was expecting of an app in a menu, but OK. Close the spares and click on the remaining device chooser in the panel, and I have to admit, I'm not getting very far with the various options.

    PulseAudio Manager looks like the logical place to go, However I'm not seeing anything that looks like a way to enable monitoring through Internal analog-out, anything on Internal Line-In.

    Well, perhaps it's in the PulseAudio Device Chooser Volume control. Well, yes I can see the device there, I can even see that the bar meeter is fluctuating with the input level, however I don't see any way to pass the audio from there through to the default output sink.

    In all honesty I suspect it's a brief python script that would like the two, acting as an application that acts as a sink for the Line-In, then pipes that to a source for the Default output sink for the system. The truth is that I don't think it should need to be created as a stand alone application, or even as a user installed plug-in to the pulse audio system. I'm thinking it should be an 'option' for any input device to be fed directly to the default output sink either at any time, or as a user configured permanent configured default

  2. #2
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: karmic pulseaudio line-in to analog-out

    In the Karmic pulseaudio version there is a pulseaudio module-loopback which will let you connect sources to sinks.

    I do not think this module is loaded by default.
    PMs will be ignored.

  3. #3
    Join Date
    Oct 2006
    Beans
    89

    Re: karmic pulseaudio line-in to analog-out

    WARNING: I am including command line commands to make modifications to my system. Do not blindly do this yourself. If you do not understand what the commands are doing, please review the manual entries for each command, and review the parameters carefully. A poorly constructed command or one maliciously constructed can leave your system in an unreliable or even unusable state.

    For future reference, the link I followed to get the following information was https://answers.launchpad.net/ubuntu...question/83742

    To add the loopback module to the running instance of Pulse Audio I used the command:
    $ pactl load-module module-loopback

    To make the module automatically load in the future, I used the command:
    $ sudo sh -c ' echo "load-module module-loopback" >> /etc/pulse/default.pa '

    Once module-loopback was loaded, the pulse audio Volume Control panel adds an option to the Recording tab that allows you to select the input you wish to use on the loopback device.

    I'm of the opinion that this should be a cleaner setup. If you have a TV Capture card, or as I do, radios that you want to be able to listen to, and at other times want to be able to record podcasts,etc through the same interface, it's a bit difficult to do without the module loaded. It could be muted by default, perhaps with a hovering help lable indicating what the features or functions of the device are. For many there will be no interest in the device. That's OK too.

  4. #4
    Join Date
    Mar 2008
    Beans
    2

    Re: karmic pulseaudio line-in to analog-out

    Quote Originally Posted by rusty0101 View Post
    To add the loopback module to the running instance of Pulse Audio I used the command:
    $ pactl load-module module-loopback

    To make the module automatically load in the future, I used the command:
    $ sudo sh -c ' echo "load-module module-loopback" >> /etc/pulse/default.pa '
    You are the man, man!

    Quote Originally Posted by rusty0101 View Post
    I'm of the opinion that this should be a cleaner setup.
    You are a gentleman too, because if i were you, i'd use more blasphemy in my reply. So its' better if i send *this* reply without adding any comment.

  5. #5
    Join Date
    Feb 2009
    Location
    Tokyo Japan
    Beans
    15
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: karmic pulseaudio line-in to analog-out

    I'd like to enable line-in to analog-out in Xubuntu Karmic but the module loading command returns:

    Connection failure: Connection refused

    Looks like Xubuntu doesn't use Pulse by default. Anyone know how to enable this in Xubuntu?

  6. #6
    Join Date
    Oct 2006
    Beans
    89

    Re: karmic pulseaudio line-in to analog-out

    I haven't looked at xubuntu under 9.10 to tell for sure, so take this with the understanding that you may need to modify the instructions for the actuall platform.

    If you don't have the pulse audio system installed, you usually need to simply go to the 'recording' tab of the audio control panel and select the 'line-in' input as the 'recording' input. I suspect that by default 'mic' or 'mic-in' is selected. Depending on the mixer you may have to unmute the control and adjust the level as well. Which view that is on will depend on the control panel.

  7. #7
    Join Date
    Feb 2009
    Location
    Tokyo Japan
    Beans
    15
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: karmic pulseaudio line-in to analog-out

    Rusty, unfortunately that didn't work. I've decided to just purchase a cheap audio switcher instead. Thanks for the response.

  8. #8
    Join Date
    Sep 2006
    Beans
    548

    Re: karmic pulseaudio line-in to analog-out

    Why is there a problem? Just install gnome-alsa-mixer or use the command line alsamixer like "alsamixer -Dhw:0", and go in and adjust line-in volume and analog mix volume. I agree karmic screwed up because they forgot to include the line-in and mic mixer settings in the new pulseaudio stuff, but at least you can still get to it.

  9. #9
    Join Date
    Nov 2009
    Beans
    1

    Hardware input monitoring

    I have a similar problem, but a little bit different. So, I'm a bass player, and lately I used my computer, with Windows XP on it, for practicing. I just plugged it in to the line-in, and set the volume control to monitor the input. It was hardware monitoring, without latency. Now, I changed to Linux, and I can't find any reasonable solution. I tried JACK, but I had a lot of overruns, and after a while it started to distort. Tried Pulseaudio with module-loopback, but it has a latency. I'm just about to give up, and buy a better soundcard, but I'm sure that my hardware is available for hardware input monitoring.

  10. #10
    Join Date
    Mar 2010
    Beans
    1

    Re: karmic pulseaudio line-in to analog-out

    The easiest thing I've used is alsamixer. Just open a terminal and type alsamixer and then you can adjust the input or mic volume and make sure it is unmuted by pressing m.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •