特殊:Badtitle/NS100:SurroundSound:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
New page: {{From|https://help.ubuntu.com/community/SurroundSound}} {{Languages|php5}} === Enabling Surround Sound in libraries === ==== Enabling Surround sound in ALSA ==== Surround may already be...
 
Wikibot留言 | 贡献
无编辑摘要
 
(未显示2个用户的6个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/SurroundSound}}
{{From|https://help.ubuntu.com/community/SurroundSound}}
{{Languages|php5}}
{{Languages|UbuntuHelp:SurroundSound}}
<<Include(Tag/NeedsExpansion)>>
<<Include(Tag/StyleCleanup)>>
=== Check These First ===
System > Preferences > Sound
-Under the Hardware tab you can configure the channel set up of your surround sound capable device. This is done by clicking on the device and expanding the drop down in the bottom section of the form.
Install KMix (I'm sure other programs allow the same functionality, but this one allowed me to make the needed adjustments)
-Run this and make sure you don't have muted channels.
=== Enabling Surround Sound in libraries ===
=== Enabling Surround Sound in libraries ===
 
By default, Ubuntu uses PulseAudio for its sound. Also by default, PulseAudio is set to 2 channels only. Enabling surround sound involves changing one line in the configuration file '''/etc/pulse/daemon.conf'''.
In the terminal, type the following:
<code><nowiki>gksu gedit /etc/pulse/daemon.conf</nowiki></code>
This should open up the configuration file in gedit. Once open, scroll down to find the line '''; default-sample-channels = 2'''. Remove the semicolon at the start of the line and change the line according to your surround sound configuration:
* For 2.0 channel sound: '''default-sample-channels = 2'''
* For 4.0 channel sound: '''default-sample-channels = 4'''
* For 5.0 channel sound: '''default-sample-channels = 5'''
* For 5.1 channel sound: '''default-sample-channels = 6'''
* For 7.1 channel sound: '''default-sample-channels = 8'''
Save the file the restart your computer.
For more detailed information, check the following links:
http://ubuntuforums.org/showthread.php?t=795525
http://www.automaticable.com/2008-05-28/how-to-enable-surround-sound-on-ubuntu-hardy/
==== Enabling Surround sound in ALSA ====
==== Enabling Surround sound in ALSA ====
Surround may already be working, make sure alsamixer has the right volume settings (Wave Surround in particular).
Surround may already be working, make sure alsamixer has the right volume settings (Wave Surround in particular).
These commands should be useful for testing:
These commands should be useful for testing:
For 4.0 surround (two speakers in front, two in the back):
For 4.0 surround (two speakers in front, two in the back):
<code><nowiki>speaker-test -Dplug:surround40 -c4 -l1 -twav</nowiki></code>
<code><nowiki>speaker-test -Dplug:surround40 -c4 -l1 -twav</nowiki></code>
For 5.1:
For 5.1:
<code><nowiki>speaker-test -Dplug:surround51 -c6 -l1 -twav</nowiki></code>
<code><nowiki>speaker-test -Dplug:surround51 -c6 -l1 -twav</nowiki></code>
For 7.1:
For 7.1:
<code><nowiki>speaker-test -Dplug:surround71 -c8 -l1 -twav</nowiki></code>
<code><nowiki>speaker-test -Dplug:surround71 -c8 -l1 -twav</nowiki></code>
If it's not working, you might try following alsa's own guide:
If it's not working, you might try following alsa's own guide:
http://alsa.opensrc.org/SurroundSound
http://alsa.opensrc.org/SurroundSound
And also this:
And also this:
http://www.halfgaar.net/surround-sound-in-linux
http://www.halfgaar.net/surround-sound-in-linux
Note however that many codecs require custom routing (ttables), the folk at #alsa on irc.freenode.org may be able to help in that case.
Note however that many codecs require custom routing (ttables), the folk at #alsa on irc.freenode.org may be able to help in that case.
==== Enabling Surround Sound in OpenAL ====
==== Enabling Surround Sound in OpenAL ====
Edit ~/.openalrc (or /etc/openalrc if you want the setting to apply system-wide) and add these two lines:
Edit ~/.openalrc (or /etc/openalrc if you want the setting to apply system-wide) and add these two lines:
`(define speaker-num 4)`
`(define speaker-num 4)`
`(define alsa-device "surround40")`
`(define alsa-device "surround40")`
Currently OpenAL does not seem to work with 5.1 or higher, but this should work fine.
Currently OpenAL does not seem to work with 5.1 or higher, but this should work fine.
=== Enabling Surround Sound in Specific Applications ===
=== Enabling Surround Sound in Specific Applications ===
==== xmms ====
==== xmms ====
Right-Click -> Options -> Preferences -> Audio I/O Plugins > Alsa > Configure
Right-Click -> Options -> Preferences -> Audio I/O Plugins > Alsa > Configure
Under "Audio Device" enter "plug:surround51"
Under "Audio Device" enter "plug:surround51"
CategoryDocumentation CategoryNeedsExpansion


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:18的最新版本

{{#ifexist: :SurroundSound/zh | | {{#ifexist: SurroundSound/zh | | {{#ifeq: {{#titleparts:SurroundSound|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SurroundSound|1|-1|}} | zh | | }}

<<Include(Tag/NeedsExpansion)>> <<Include(Tag/StyleCleanup)>>

Check These First

System > Preferences > Sound -Under the Hardware tab you can configure the channel set up of your surround sound capable device. This is done by clicking on the device and expanding the drop down in the bottom section of the form. Install KMix (I'm sure other programs allow the same functionality, but this one allowed me to make the needed adjustments) -Run this and make sure you don't have muted channels.

Enabling Surround Sound in libraries

By default, Ubuntu uses PulseAudio for its sound. Also by default, PulseAudio is set to 2 channels only. Enabling surround sound involves changing one line in the configuration file /etc/pulse/daemon.conf. In the terminal, type the following: gksu gedit /etc/pulse/daemon.conf This should open up the configuration file in gedit. Once open, scroll down to find the line ; default-sample-channels = 2. Remove the semicolon at the start of the line and change the line according to your surround sound configuration:

  • For 2.0 channel sound: default-sample-channels = 2
  • For 4.0 channel sound: default-sample-channels = 4
  • For 5.0 channel sound: default-sample-channels = 5
  • For 5.1 channel sound: default-sample-channels = 6
  • For 7.1 channel sound: default-sample-channels = 8

Save the file the restart your computer. For more detailed information, check the following links: http://ubuntuforums.org/showthread.php?t=795525 http://www.automaticable.com/2008-05-28/how-to-enable-surround-sound-on-ubuntu-hardy/

Enabling Surround sound in ALSA

Surround may already be working, make sure alsamixer has the right volume settings (Wave Surround in particular). These commands should be useful for testing: For 4.0 surround (two speakers in front, two in the back): speaker-test -Dplug:surround40 -c4 -l1 -twav For 5.1: speaker-test -Dplug:surround51 -c6 -l1 -twav For 7.1: speaker-test -Dplug:surround71 -c8 -l1 -twav If it's not working, you might try following alsa's own guide: http://alsa.opensrc.org/SurroundSound And also this: http://www.halfgaar.net/surround-sound-in-linux Note however that many codecs require custom routing (ttables), the folk at #alsa on irc.freenode.org may be able to help in that case.

Enabling Surround Sound in OpenAL

Edit ~/.openalrc (or /etc/openalrc if you want the setting to apply system-wide) and add these two lines: `(define speaker-num 4)` `(define alsa-device "surround40")` Currently OpenAL does not seem to work with 5.1 or higher, but this should work fine.

Enabling Surround Sound in Specific Applications

xmms

Right-Click -> Options -> Preferences -> Audio I/O Plugins > Alsa > Configure Under "Audio Device" enter "plug:surround51"