2014年2月23日日曜日

piCorePlayer:「sample format」の「24」と「24_3」の違いについて

「24」と「24_3」の違い

インストールするとき、
「24」では音が出なかったので「24_3」にしたが、
その違いは何かが気になってググってみた。

1.何を示しているか
「24」:4バイト長の24ビットデータ(S24_LE)
「24_3」:3バイト長の24ビットデータ (S24_3LE)

2.どちらを指定するか
ハードウェアがどちらに対応しているかによる。

3.確認方法
ALSA周りの情報で判別できるようです。
tc@piCorePlayer:/proc/asound$ ls -l
total 0
lrwxrwxrwx    1 root     root             5 Feb 22 11:53 ALSA -> card0/
lrwxrwxrwx    1 root     root             5 Feb 22 11:53 DA90 -> card1/
dr-xr-xr-x    3 root     root             0 Feb 22 11:53 card0/
dr-xr-xr-x    5 root     root             0 Feb 22 11:53 card1/
dr-xr-xr-x    3 root     root             0 Feb 22 11:53 card2/
-r--r--r--    1 root     root             0 Feb 22 11:53 cards
-r--r--r--    1 root     root             0 Feb 22 11:53 devices
-r--r--r--    1 root     root             0 Feb 22 11:53 hwdep
-r--r--r--    1 root     root             0 Feb 22 11:53 modules
dr-xr-xr-x    2 root     root             0 Feb 22 11:53 oss/
-r--r--r--    1 root     root             0 Feb 22 11:53 pcm
dr-xr-xr-x    2 root     root             0 Feb 22 11:53 seq/
lrwxrwxrwx    1 root     root             5 Feb 22 11:53 sndrpihifiberry -> card2/
-r--r--r--    1 root     root             0 Feb 22 11:53 timers
-r--r--r--    1 root     root             0 Feb 22 11:53 version

DA90に対応するのがcard1と分かります。

tc@piCorePlayer:/proc/asound/card1$ ls
id        pcm0p/    stream0   usbbus    usbmixer
pcm0c/    pcm1p/    stream1   usbid

この中の「stream0」に情報があります。

tc@piCorePlayer:/proc/asound/card1$ cat stream0
DKL Audio DKL Audio USB DAC DA-90 at usb-bcm2708_usb-1.2, full speed : USB Audio

Playback:
  Status: Running
    Interface = 3
    Altset = 1
    Packet Size = 243
    Momentary freq = 48000 Hz (0x30.0000)
  Interface 3
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 3 OUT (ADAPTIVE)
    Rates: 8000, 16000, 32000, 44100, 48000, 96000
  Interface 3
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ADAPTIVE)
    Rates: 8000, 16000, 32000, 44100, 48000, 96000

Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 IN (ADAPTIVE)
    Rates: 8000, 16000, 32000, 44100, 48000, 96000
  Interface 2
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 2 IN (ADAPTIVE)
    Rates: 8000, 16000, 32000, 44100, 48000, 96000

「Format」と「Rates」から
Format:S16_LE(16),S24_3LE(24_3)
Rates:8000, 16000, 32000, 44100, 48000, 96000
に対応していることが分かります。
ありゃりゃ~、88.2kHzには対応してない。。。(T_T)

0 件のコメント:

コメントを投稿