特殊:Badtitle/NS100:SurroundSound
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/SurroundSound }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/af | • {{#if: UbuntuHelp:SurroundSound|Afrikaans| [[::SurroundSound/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ar | • {{#if: UbuntuHelp:SurroundSound|العربية| [[::SurroundSound/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/az | • {{#if: UbuntuHelp:SurroundSound|azərbaycanca| [[::SurroundSound/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/bcc | • {{#if: UbuntuHelp:SurroundSound|جهلسری بلوچی| [[::SurroundSound/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/bg | • {{#if: UbuntuHelp:SurroundSound|български| [[::SurroundSound/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/br | • {{#if: UbuntuHelp:SurroundSound|brezhoneg| [[::SurroundSound/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ca | • {{#if: UbuntuHelp:SurroundSound|català| [[::SurroundSound/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/cs | • {{#if: UbuntuHelp:SurroundSound|čeština| [[::SurroundSound/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/de | • {{#if: UbuntuHelp:SurroundSound|Deutsch| [[::SurroundSound/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/el | • {{#if: UbuntuHelp:SurroundSound|Ελληνικά| [[::SurroundSound/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/es | • {{#if: UbuntuHelp:SurroundSound|español| [[::SurroundSound/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/fa | • {{#if: UbuntuHelp:SurroundSound|فارسی| [[::SurroundSound/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/fi | • {{#if: UbuntuHelp:SurroundSound|suomi| [[::SurroundSound/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/fr | • {{#if: UbuntuHelp:SurroundSound|français| [[::SurroundSound/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/gu | • {{#if: UbuntuHelp:SurroundSound|ગુજરાતી| [[::SurroundSound/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/he | • {{#if: UbuntuHelp:SurroundSound|עברית| [[::SurroundSound/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/hu | • {{#if: UbuntuHelp:SurroundSound|magyar| [[::SurroundSound/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/id | • {{#if: UbuntuHelp:SurroundSound|Bahasa Indonesia| [[::SurroundSound/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/it | • {{#if: UbuntuHelp:SurroundSound|italiano| [[::SurroundSound/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ja | • {{#if: UbuntuHelp:SurroundSound|日本語| [[::SurroundSound/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ko | • {{#if: UbuntuHelp:SurroundSound|한국어| [[::SurroundSound/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ksh | • {{#if: UbuntuHelp:SurroundSound|Ripoarisch| [[::SurroundSound/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/mr | • {{#if: UbuntuHelp:SurroundSound|मराठी| [[::SurroundSound/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ms | • {{#if: UbuntuHelp:SurroundSound|Bahasa Melayu| [[::SurroundSound/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/nl | • {{#if: UbuntuHelp:SurroundSound|Nederlands| [[::SurroundSound/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/no | • {{#if: UbuntuHelp:SurroundSound|norsk| [[::SurroundSound/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/oc | • {{#if: UbuntuHelp:SurroundSound|occitan| [[::SurroundSound/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/pl | • {{#if: UbuntuHelp:SurroundSound|polski| [[::SurroundSound/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/pt | • {{#if: UbuntuHelp:SurroundSound|português| [[::SurroundSound/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ro | • {{#if: UbuntuHelp:SurroundSound|română| [[::SurroundSound/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/ru | • {{#if: UbuntuHelp:SurroundSound|русский| [[::SurroundSound/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/si | • {{#if: UbuntuHelp:SurroundSound|සිංහල| [[::SurroundSound/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/sq | • {{#if: UbuntuHelp:SurroundSound|shqip| [[::SurroundSound/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/sr | • {{#if: UbuntuHelp:SurroundSound|српски / srpski| [[::SurroundSound/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/sv | • {{#if: UbuntuHelp:SurroundSound|svenska| [[::SurroundSound/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/th | • {{#if: UbuntuHelp:SurroundSound|ไทย| [[::SurroundSound/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/tr | • {{#if: UbuntuHelp:SurroundSound|Türkçe| [[::SurroundSound/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/vi | • {{#if: UbuntuHelp:SurroundSound|Tiếng Việt| [[::SurroundSound/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/yue | • {{#if: UbuntuHelp:SurroundSound|粵語| [[::SurroundSound/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/zh | • {{#if: UbuntuHelp:SurroundSound|中文| [[::SurroundSound/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/zh-hans | • {{#if: UbuntuHelp:SurroundSound|中文(简体)| [[::SurroundSound/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SurroundSound | UbuntuHelp:SurroundSound | {{#if: | :}}SurroundSound}}/zh-hant | • {{#if: UbuntuHelp:SurroundSound|中文(繁體)| [[::SurroundSound/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:SurroundSound|:SurroundSound|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :SurroundSound/zh | | {{#ifexist: SurroundSound/zh | | {{#ifeq: {{#titleparts:SurroundSound|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SurroundSound|1|-1|}} | zh | | }}
<<Include(Tag/NeedsExpansion)>> <<Include(Tag/StyleCleanup)>>
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:
sudo 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"