[問題] FreeBSD 音效如何使用5.1聲道
有沒有人有在FreeBSD下播放5.1聲道音效的經驗?
在網路上找了不少資料, 似乎都不大work..
以下是我的測試:
OS: FreeBSD 4.11
音效卡: SoundBlaster Live! (model:4830)
用snd_emu10k1驅動
# kldstat
Id Refs Address Size Name
1 3 0xc0100000 2b2dc4 kernel
2 1 0xc1fdd000 5000 snd_emu10k1.ko
3 1 0xc1fe3000 15000 snd_pcm.ko
有設了vchans = 6 (不過後來發現這是多弄幾個dev把聲音混音,用途不同)
# sysctl -a |grep snd
hw.snd.targetirqrate: 32
hw.snd.report_soft_formats: 1
hw.snd.verbose: 1
hw.snd.maxautovchans: 6
hw.snd.pcm0.buffersize: 4096
hw.snd.pcm0.vchans: 6
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Creative EMU10K1> at io 0xe000 irq 10 (4p/2r/6v channels duplex)
用mplayer測試, 雙聲道測試OK
# mplayer -ao oss -channels 2 xxx.wav
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 6 ch, 16 bit (0x10), ratio: 529200->529200 (4233.6 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Checking audio filter chain for 44100Hz/6ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 6 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 6ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/6ch/16bit -> 44100Hz/2ch/16bit...
Video: no video
Starting playback...
A: 2.7 1.3% 0%
....
用mplayer測試, 4聲道測試失敗(6聲道也失敗)
# mplayer -ao oss -channels 4 xxxx.wav
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 6 ch, 16 bit (0x10), ratio: 529200->529200 (4233.6 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Checking audio filter chain for 44100Hz/6ch/16bit -> 44100Hz/4ch/16bit...
AF_pre: af format: 2 bps, 6 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 6ch Signed 16-bit (Little-Endian)
audio_setup: Failed to set audio device to 4 channels
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
有沒有人在這方面有經驗願意分享一下?
Thanks..^^
--
※ Origin: 臺大電機 Maxwell 站 ◆ From: adsl-220-229-54-51.KH.sparqnet.net
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章