LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Eliminate or Reduce Mic Input to Speakers Latency? (https://www.linuxquestions.org/questions/linux-hardware-18/eliminate-or-reduce-mic-input-to-speakers-latency-793794/)

AudioMechanic 03-07-2010 10:27 AM

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!

tredegar 03-07-2010 11:01 AM

Maybe try something that is reputed to be optimised for handling audio, like 'buntu Studio ?

AudioMechanic 03-07-2010 11:29 AM

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!!!

tredegar 03-07-2010 11:45 AM

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.

smoker 03-07-2010 12:32 PM

You don't want to be using pulse audio.

Try this :
http://manpages.ubuntu.com/manpages/...1/jackd.1.html

Electro 03-07-2010 04:17 PM

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.


All times are GMT -5. The time now is 01:34 PM.