Wiki

Reso-nance numérique | Arts et cultures libres

Outils du site


logiciels:linux:3.audio

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

logiciels:linux:3.audio [2015/03/08 00:11]
resonance créée
logiciels:linux:3.audio [2015/03/08 00:12] (Version actuelle)
resonance
Ligne 189: Ligne 189:
 /sbin/fuser -v /dev/dsp : dénoncera quel programme est en train d'utiliser ou de bloquer la carte son. /sbin/fuser -v /dev/dsp : dénoncera quel programme est en train d'utiliser ou de bloquer la carte son.
 lspcidrake -v | grep AUDIO : vous indique quel pilote votre carte utilise par défaut lspcidrake -v | grep AUDIO : vous indique quel pilote votre carte utilise par défaut
 +
 +
 +******************
 +* FAST TRACK PRO *
 +*****************
 +
 +My sound cards are :
 +
 +    * hda-intel with conexant chip
 +    * m-audio fast track usb
 +
 +I have a built in sound card that use the driver hda-intel from alsa, the module is called snd-hda-intel. Please replace those names by the correct one for your sound card.
 +The commands lspci lsmod | grep snd and the alsa web site may help you.
 +
 +If you are a feisty user, to use your sound card with the best results (for recording), please install the low latency kernel.
 +
 +********
 +* ALSA *
 +********
 +In my case, I had to build alsa from source because the conexant chip is better supported with the last version. Download
 +    * alsa-driver
 +    * alsa-lib
 +    * alsa-utils
 +
 +from the alsa website.
 +untar them with the command
 +$ tax -xf alsa-driver-version && tax -xf alsa-lib-version && tax -xf alsa-utils-version
 +Build the driver :
 +$ sudo apt-get install build-essential
 +$ cd alsa-driver*
 +$ ./configure --with-cards=hda-intel,usb-audio --with-sequencer=yes
 +$ make
 +$ sudo make install
 +Build the lib
 +$ cd ../alsa-lib*
 +$ ./configure && make && sudo make install
 +Build the utilis
 +$ cd ../alsa-utils*
 +$ ./configure && make && sudo make install
 +reboot and check if your both sound cards are recognized by your system
 +$ cat /proc/asound/cards
 +
 +********************
 +* Configuring Jack *
 +********************
 +Right now you have your laptop sound card as the default sound card. We will see in the next section how to correct this. Lets check if everything is alright.
 +Launch jack
 +$ qjackctl
 +or select JACK control in the sound & video menu.
 +launch the setup in jack and configure jack :
 +
 +    * select Realtime
 +    * Frames/Period 128
 +    * Interface Fast Track
 +    * intput device Fast track
 +
 +Launch the server and open the Messages window. If everything works fine (no xrun), you can test the output with hydrogen for instance, and the input by recording you favorite instrument with ardour.
 +
 +Everything okay? Let's make this sound card the default sound card.
 +
 +*************************
 +* Fast Track as default *
 +*************************
 +open the texte file /etc/modprobe.d/alsa-base
 +$ sudo gedit /etc/modprobe.d/alsa-base
 +and replace the line
 +options snd-usb-audio index=-2
 +with
 +#options snd-usb-audio index=-2
 +
 +create a file called /etc/modprobe.d/sound
 +$ sudo gedit /etc/modprobe.d/sound
 +and put the following lines in it
 +options snd-usb-audio index=0
 +options snd-hda-intel index=1
 +
 +
 +Lets play !!
 +
 +***************************************************************
 +* Re: M-Audio Fast Track Pro                                  *
 +* II. Ubuntu Studio and Linux - install on 3rd partition last *
 +***************************************************************
 +A. Sources - LiveCD or alternate CD for modern distros
 +
 +1. Use download managers or torrents to get large files
 +2. Always burn OS discs at slowest possible speed
 +3. Glossary
 +a. "/" is the root directory for Linux partition #3
 +b. ext2 or ext3 are the filesystems for Linux
 +c. swap is used on the tiny 4th partition
 +d. 1st and 2nd partitions are NTFS
 +e. "/home" is reserved for 5th partition as ext2
 +4. Follow simple installation instructions for LiveCD or Alternate CD
 +5. plugin Ethernet cable to configure DHCP
 +6. Okay to skip automatic dhcp
 +
 +B. UbuntuStudio - First run
 +
 +1. Install NVIDIA graphics card driver for Linux
 +2. Add gnome-network-manager for wireless internet
 +3. Add ubuntu-restricted-modules
 +4. Update packages
 +
 +C. Ubuntu Studio setup
 +
 +1. Streaming audio - See PulseAudio wiki
 +a. In PulseAudio Volume Control click the last tab and enable virtual simultaneous outputs.
 +b. Tweak PulseAudio to remove clicks
 +c. Run 'padsp zynaddsubfx' to test clicks
 +2. M-Audio Fast Track - class-compliant
 +a. Choose device in qjackctl setup
 +b. Select device #1 in System/Sound
 +3. Compile ALSA from source
 +a. Require build-essential
 +b. Require RT kernel headers
 +c. See links for details
 +4. Streaming or stereo mix recording is enabled by calling a program with padsp command prefix.
 +a. First launch your audio program with padsp
 +b. Launch Audacity with 'padsp audacity'
 +5. PulseAudio cannot co-exist with qjackctl, so you can't record streams and instruments at once.
 +6. JACK displays PortAudio when Audacity is recording with JACK drivers so:
 +a. Record then pause with Audacity
 +b. Go to JACK dialog box - click connect
 +c. Patch your audio app into PortAudio
 +
 +7. To get audio feedback from mic:
 +a. Open qjackctl
 +b. Click setup
 +c. Select USB Audio #1 for all interfaces
 +d. 128 buffers / 2-4 periods
 +e. Start JACK server
 +f. Connect 'sytstem in' to 'system out'
 +g. Push Fast-Track A/B switch in B setting
 +h. Connect monitors to 3/4 and headphones
 +i. Launch karaoke program
 +
 +8. To get simultaneous playback on computer and USB speakers
 +a. Install PulseAudio as instructed
 +b. Select simultaneous outputs/inputs in PulseAudio Volume Control
 +c. Launch VLC or your favorite audio p:layer in padsp mode.
 +d. The sound output should come from both sources and record too.
 +
 +9. UPDATE: Get system wide stereo mix with instruments
 +a. Go to System - Preferences - Sound
 +b. Under audio devices select "Usb Audio" for all playback
 +c. Select "USB Audio #1" for recording
 +d. Reboot
 +e. Turn A/B mixer knob to middle position
 +f. Plug in a microphone
 +g. Plug in computer speakers to 1/2 out
 +i. See http://ubuntuforums.org/showthread.php?t=843012
 +j. Use the PulseAudio Jack plugins
 +k. Patch System and PulseAudio into PortAudio when using Audacity.
 +
 +10. Edit PulseAudio daemon.conf
 +a. http://www.pulseaudio.org/attachment...26/daemon.conf
 +b. Run "killall pulseaudio" from a terminal
 +c. Run "pulseaudio -D" to restart
 +
 +Note: Using 48000 Hz causes tuning problems
 +My daemon.conf settings:
 +
 +high-priority = yes
 +nice-level = -11
 +realtime-scheduling = yes
 +realtime-priority = 1
 +default-fragments = 10
 +default-fragment-size-msec = 1
 +resample-method = speex-float-3
 +default-sample-format = s32le
 +default-sample-rate = 44100
 +default-sample-channels = 2
 +no-cpu-limit = yes
 +;disable-remixing = yes
 +
 +UPDATE: August 14, 2008 - Flash 10 with PulseAudio
 +http://ubuntuforums.org/showpost.php...&postcount=472
 +
  
 </code> </code>
/home/resonancg/www/wiki/data/attic/logiciels/linux/3.audio.1425769902.txt.gz · Dernière modification: 2015/03/08 00:11 de resonance