LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-07-2010, 10:27 AM   #1
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Rep: Reputation: 16
Eliminate or Reduce Mic Input to Speakers Latency?


Ok, my question is likely an odd one but here goes anyway.

I have a Macbook running Ubuntu Karmic and I have been asked to DJ (amateur to the MAX) a friend's wedding next weekend. I don't have the coin to spend on a Mixer so I can run my mic and laptop through my amp so I figure I'd just run the Mic into the mic input on my Macbook and let the laptop do the mixing for me.

Well, I added the loopback module to Pulse and inserted a command to have it auto start:

Code:
pactl load-module module-loopback
Code:
sudo sh -c ' echo "load-module module-loopback" >> /etc/pulse/default.pa '
Now, all of that actually works fine! I can hear the mic through the output and the quality is good. My problem now, is that what comes out of the speakers is about 30 milliseconds behind what I'm saying into the mic. This, of course, is throwing me off big time (like listening to a serious echo and trying to talk despite it).

Is there any way to reduce the latency? To make the input-to-output faster?

Thanks in advnace!
 
Old 03-07-2010, 11:01 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Maybe try something that is reputed to be optimised for handling audio, like 'buntu Studio ?
 
Old 03-07-2010, 11:29 AM   #3
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Thought about it. What is different sound server-wise between Studio and Original?

I though Studio was more adapted to post-production rather than live. I could very easily be wrong here.

Thanks for the reply!!!
 
Old 03-07-2010, 11:45 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
What is different sound server-wise between Studio and Original?
I do not know, I have no use or need for "studio". It was just a suggestion.
 
Old 03-07-2010, 12:32 PM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You don't want to be using pulse audio.

Try this :
http://manpages.ubuntu.com/manpages/...1/jackd.1.html
 
Old 03-07-2010, 04:17 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I agree with smoker. Remove or disable Pulseaudio and use JACK instead. JACK is designed to have the lowest latency when possible. If programs does not support JACK, ALSA has a plug-in to make non-JACK supporting programs work with JACK.

Personally, I would not put Linux on a Macbook or any Mac these days because the operating system is Unix like, so you get the best of two worlds.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing MIC input to SPEAKERS Acetylcholine Linux - Software 4 11-07-2009 09:07 AM
mic coming out speakers crashsystems Linux - General 7 10-06-2007 03:11 PM
HELP connecting MIC Input/Line Input with Jack and Qsynth animehair Linux - Software 0 07-28-2006 07:47 AM
mic to speakers hardknox Linux - Software 4 03-29-2005 05:42 PM
Speakerphone using Mic/Speakers. Borelian Linux - Software 0 10-04-2003 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration