2014-09-26

ubuntu 14.04 Jack Audio 설정

1. Jack 설치하기

$ sudo apt-get install jackd qjackctl

자동으로 jack2가 설치되고 다음과 같은 물음창이 뜬다. jack과 jack2의 차이점은 32/64 bit인 것으로 보인다.(확인필요) OS가 32비트면 jack(1)이 설치될 것이다.

리얼타임으로 jack에게 권한을 주겠냐는 말이다. 높은 priority가 필요하다. 즉 루트권한이 필요하다. yes를 누른다.

다음은 루트권한을 주기위한 작업이다.

$ sudo cp /etc/security/limits.conf /etc/security/limits.conf.original

$ sudo nano /etc/security/limits.conf

다음을 추가한다.

### realtime permission for jackd

@audio   -  rtprio     99

@audio   -  memlock    unlimited

@audio   -  nice      -10

===========

원문 설명이다.

* The 'memlock' line determines the amount of memory available to users in the group "audio". 

* The 'nice' line, has to do with how long the processor will wait for processes queued from group "audio".

* The 'rtprio' line assigns an extremely high priority to the group "audio".

The nice and rtprio settings will basically give your audio top priority at the cpu which is a necessity for live work.

============

Realtime support를 위해 오디오 그룹을 만들고 자신의 유저아이디를 추가한다.

$ sudo usermod -a -G audio 자신의유저아이디

재부팅한다.

참고:

http://ubuntuforums.org/showthread.php?t=806730

https://help.ubuntu.com/community/UbuntuStudioPreparation

http://ubuntuforums.org/showthread.php?t=843012

2. Jack 서버가 실행된 상태에서 유튜브나 웹에서 오디오 재생이 안됨, Jack 비호환 앱들의 소리 안남 해결.

Pulseaudio -> Alsa -> Jack 로 자동으로 루팅해 주는 간단히 툴이 있다.

$ sudo apt-get install pulseaudio-module-jack

Pulseaudio setting에서 각 어플리케이션 메뉴가 뜨는데, Built-in Audio대신에 Jack sink (PulseAudio Jack Sink)로 선택해 주면 된다.

**추가: 약간의 버그: pass through 설정 한 뒤에 가끔 Jack sink로 선택이 안되고 다른 걸로(Speakers나 Headphone) 선택이 되면서 소리가 안 나는 현상이 있다. 매번 사운드를 열어서 클릭해 줘야 하는데, 마이너한 버그로 보인다. 아직 해결방법은 없어서 매번 클릭하고 있다. 아직 참을만 해서 방법을 안 찾아보고 있다. PulseAudio 대신 Cadence를 쓰면 해결이 된다는 제보가 있었다.

설정이 끝나면 다음과 같이 Jack을 기본 오디오관리자로 설정하고 어떤 프로그램이든 연결해서 쓸 수 있다. MacOS X의 Core Audio보다 강력한 기능이다.

참고:

https://help.ubuntu.com/community/UbuntuStudio/ProAudioIntro/1204#The_Pulse_Audio_to_Jack_Bridge_-_using_both_at_once

https://help.ubuntu.com/community/UbuntuStudioPreparation#PulseAudio_and_Jack_working_together

Cadence라는것도 있다. 아직 안써봄. Макс Нойперт에 의하면 Qjackctl보다 좋다고 한다.

http://kxstudio.sourceforge.net/Documentation:Manual:cadence_introduction

 

No comments:

Post a Comment